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.
Steps to reproduce: - Create 'A' JavaFX class: ------------------------------------------------- class A { public var a : String; } ------------------------------------------------- netbeans-trunk-nightly-200909201401-javafx-full.zip Product Version = NetBeans IDE Dev (Build 200909201401) (#9477102bf2cf) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. - Format the code The result is: --------------------------------------------------- class A { // <- A space added before the class keyword // <- New lines added public var a : String; } ---------------------------------------------------
netbeans-trunk-nightly-200909201401-javafx-full.zip Product Version = NetBeans IDE Dev (Build 200909201401) (#9477102bf2cf) Operating System = Windows XP version 5.1 running on x86 Java; VM; Vendor = 1.6.0_15; Java HotSpot(TM) Client VM 14.1-b02; Sun Microsystems Inc. Steps to reproduce: - Create 'A' JavaFX class: ------------------------------------------------- class A { public var a : String; } ------------------------------------------------- - Format the code The result is: --------------------------------------------------- class A { // <- A space added before the class keyword // <- New lines added public var a : String; } ---------------------------------------------------
fixed
anton, please provide changeset to all bug closed as FIXED. It will allow better track the fix. Unfortunately, the commits messages arent added to bugs automatically as it happens for bugs in nb-main repository. Thx.
Sure, sorry. http://hg.netbeans.org/javafx/rev/a46696bab294
The issue is still reproduced in build: netbeans-6.8beta-200909281634-javafx-full.zip The result of the formatting is: ------------------------------------- class A { public var a : String; } -------------------------------------
The current result is: ===== class A { public var a : String; } ===== A new line has been added since "blank lines after class header" is true in editor settings. So it is correct behavior.
In the build 200910261401 I see --------------------------------------------------------- class A { public var a : String; } --------------------------------------------------------- Do the last two lines after the variable declaration are added by intention?
Last lines - no, this is a bug.
fixed by http://hg.netbeans.org/javafx/rev/2e6affd7a86e
verified in Build 200911160201