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.
Whenever I have a bound function, so a function definition that starts public bound function ... the formatter goes crazy when I reformat the code. It totally messes up the code to the point where it actually introduces syntax errors -- the code won't compile after formatting. It appears that formatter is not aware of the JavaFX reserved word "bound".
Format the code: ------------------------------------------- class A{ var x = 3.0; public bound function addX(y:Number):Number{ x + y; } } ------------------------------------------- The result is ------------------------------------------- class A { var x = 3.0; public boundfunction addX (y:Number):Number{ x + y; } } ------------------------------------------- Main.fx:11: Sorry, I was trying to understand a 'class' declaration member but I got confused when I saw 'boundfunction' which is an identifier. public boundfunction addX Main.fx:15: Sorry, I was trying to understand the script contents but I got confused when I found an extra '}' that should not be there. } 2 errors
fixed http://hg.netbeans.org/javafx/rev/e2a66722604c