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.
Product Version = NetBeans IDE Dev (Build 200911170201) (#3dca89945b8c) 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: - Format the code some times: -------------------------------------------- var action : function (); function run() { } -------------------------------------------- The result is: -------------------------------------------- var action: function(); function run() { // <- Shifted brace } --------------------------------------------
Works for me. Product Version: NetBeans Platform Dev (Build 091113-975c8f5fea8c) Java: 1.6.0_12; Java HotSpot(TM) Server VM 11.2-b01 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU Userdir: C:\Projects\NetBeans\trunk\javafx\build\testuserdir
The issue is still reproduced in NetBeans-JavaFX-Soma: #62 Just copy the code to the editor and format it several times.
Product Version: NetBeans Platform Dev (Build 091113-975c8f5fea8c) Java: 1.6.0_12; Java HotSpot(TM) Server VM 11.2-b01 System: Windows XP version 5.1 running on x86; Cp1251; ru_RU Userdir: C:\Projects\NetBeans\trunk\javafx\build\testuserdir Works for me. Even for few times of reformatting.
I see that the issue is reproduced if a file contains comments and a package statement: ------------------------------------------------------------ /* * Main.fx * * Created on Dec 17, 2009, 1:26:50 PM */ package javafxapplication10; var action: function(); function run() { } ------------------------------------------------------------ In this case the bracket is shifted to the right. After removing the comments the all works fine.
fixed http://hg.netbeans.org/javafx/rev/248fb811b56e
verified in NetBeans-JavaFX-Soma: #140