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.
Although the "Format" from latest Netbeans Rc1 is now working. It is now able to format the code. However, there is still a bug in it. When the type of variable declaration is qualified by the package, the JavaFX Code formatter will format the code incorrectly. For example, public class TestClass { public var myDate:java.util.Date = new java.util.Date(); // myDate:java.util.Date will cause problem to formatter public var myString:java.lang.String = "Still buggy"; } will be formatted incorrectly as public class TestClass { public var myDate: java .util.Date = new Date(); public var myString:java.lang.String = "Still buggy"; } The JavaFX Script Code formatter will mess up the first occurrence of the declaration line with package qualifier (eg myDate:java.util.Date) .
It is possible to use class importing as a workaround: ------------------------------------------------------- import java.util.Date; public class TestClass { public var myDate: Date = new Date(); // public var myString: String = "Still buggy"; } -------------------------------------------------------
I tried your test sample and the result for me is public class TestClass { public var myDate: java .util.Date = new java.util.Date(); public var myString:java.lang.String = "Still buggy"; } I agree that it's bug but definitelly not P1. I need to check it on different OS
the code remains compilable
This bug was already fixed.
Verified in the developers build 6.8.1 NetBeans-JavaFX-Soma #60