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.
The formatter doesn't handle function variable definitions well (where I specify the types of parameters expected by the function). Consider these variations: var onCommit1: function(boolean: Boolean, string: String, bounds: Bounds): Void; var onCommit2: function(Boolean, String, Bounds): Void; var onCommit3: function(:Boolean, :String, :Bounds): Void; If I format this I get var onCommit1: function(boolean: Boolean,string: String,bounds: Bounds): Void; var onCommit2: function(Boolean ,String ,Bounds ): Void; var onCommit3: function(: Boolean,: String,: Bounds): Void; In both cases I get strange formatting. By the way, if I select just these three lines in my code and apply a format of those three lines instead of the whole file, I get something stranger: var onCommit1: function ( boolean : Boolean ,string: String,bounds: Bounds): Void; var onCommit2: function(Boolean ,String ,Bounds ): Void; var onCommit3: function(: Boolean,: String,: Bounds): Void;
fixed http://hg.netbeans.org/javafx/rev/073dd94f05c4
verified in netbeans-trunk-nightly-201005112200-javafx-full-windows.exe