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 code: Case 1: ---------------------------------------- java.util.Arrays.sort(raw); var strRes: String = java.util.Arrays.toString(raw); println(strRes); var arr = ["1", "2"] as nativearray of String; ---------------------------------------- Case 2: ---------------------------------------- var arr = ["1", "2"] as nativearray of String; var b = 3; ---------------------------------------- The results are: ---------------------------------------- var str = "Simple string"; var raw: nativearray of Byte = str.getBytes(); java.util.Arrays.sort(raw); var strRes: String = java.util.Arrays.toString(raw); println(strRes); ---------------------------------------- and ---------------------------------------- var arr = ["1", "2"] as nativearray of String; var b = 3; ----------------------------------------
The Case 1 should be: ----------------------------------------------------------------- var str = "Simple string"; var raw: nativearray of Byte = str.getBytes(); java.util.Arrays.sort(raw); var strRes: String = java.util.Arrays.toString(raw); println(strRes); -----------------------------------------------------------------
fixed http://hg.netbeans.org/javafx/rev/83df0b8e8d93
NetBeans-JavaFX-Soma #60 - Format code: -------------------------------------------------- var arr = ["1", "2"] as nativearray of String; var b = 3; -------------------------------------------------- The result is: -------------------------------------------------- var arr = ["1", "2"] as nativearray of String; var b = 3; --------------------------------------------------
fixed http://hg.netbeans.org/javafx/rev/8bc73ca13cd4
verified in NetBeans-JavaFX-Soma: #61
Respective CS for release68_fixes http://hg.netbeans.org/javafx/rev/d1bfb13acc13 http://hg.netbeans.org/javafx/rev/aaa46fb677a2
Verified in NB 6.8 patch1 netbeans-6.8-201001241915-javafx-full.zip from /builds/netbeans/6.8/fixes