This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I'm not sure if this is only happening in the php editor but: After invoking "Getter and Setter generation" after pressing alt+insert, indendation of the first method does not follow the code layout rules. Steps to reproduce: Create a class with this code: <?php class newPHPClass { protected $_foo; } ?> * Press alt+insert and choose "Getter and Setter generation" * Check _foo and choose "Remove underscore" at method naming style and click ok. * Expected result: class newPHPClass { protected $_foo; public function getFoo() { return $this->_foo; } public function setFoo($_foo) { $this->_foo = $_foo; } } * Actual result: class newPHPClass { protected $_foo; public function getFoo() { return $this->_foo; } public function setFoo($_foo) { $this->_foo = $_foo; } } This issue has been around for a long time already, just didnt submit it yet :p Environment: Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-7160-on-20110507) Java: 1.6.0_23; Java HotSpot(TM) Client VM 19.0-b09 System: Windows 7 version 6.1 running on x86; Cp1252; nl_NL (nb) Userdir: C:\Users\maghiel\.netbeans\dev
To reporter: Don't hesitate and enter bug at the moment when you run an issue.:) Fixed in web-main and releases/release701 branch.
Integrated into 'main-golden' Changeset: http://hg.netbeans.org/main-golden/rev/ User: Log:
@Petr: I don't hesitate, but sometimes I just don't have the time to search for similar bugs and file a report ;) Anyway, verified fixed in: Product Version: NetBeans IDE Dev (Build nbms-and-javadoc-7200-on-20110515) Java: 1.7.0-ea; Java HotSpot(TM) 64-Bit Server VM 21.0-b14 System: Windows 7 version 6.1 running on amd64; Cp1252; en_US (nb) Userdir: C:\Users\maghiel\.netbeans\dev