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.
If I try to format the following code, the 'inline comment' will be wrapped into a new line. This happens not, if there is no other variable declaration before the function. <?php class myClass { private $a = 1; // comment private $b = 2; function __construct() { } } ?> Product Version: NetBeans IDE 6.9 Beta (Build 201004200117) Java: 1.6.0_20; Java HotSpot(TM) Client VM 16.3-b01 System: Windows XP version 5.1 running on x86; Cp1252; de_DE (nb)
Fixed in web-main. Should be added to the first patch for NetBeans 6.9
Integrated into 'main-golden', will be available in build *201005300001* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/bd268edfda87 User: Petr Pisl <ppisl@netbeans.org> Log: #186461 - Formatting failure with inline comments
verified in Product Version: NetBeans IDE Dev (Build 2010-06-01_09-04-11 ) Java: 1.6.0_16; Java HotSpot(TM) 64-Bit Server VM 14.2-b01 i agree with porting to 6.9.1
The fix has been ported into the release691 branch. http://hg.netbeans.org/release691/rev/be0419b83e4b
Verified in the following 6.9.1 build: Product Version: NetBeans IDE 6.9.1 Dev (Build 201007062301) Java: 1.6.0_20; Java HotSpot(TM) 64-Bit Server VM 16.3-b01-279 System: Mac OS X version 10.5.8 running on x86_64; MacRoman; en_US (nb)
Thanks, for fixing this bug!