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 keywords "var" and "def" are used for declaring variables everywhere; the keywords "attribute" and "static" are going away. Variables declared inside a class are what used to be called attributes; variables defined at script level are what used to be called statics; variables inside code blocks are local variables. "Def" can be used wherever "var" can, and it is an error to subsequently assign a value to a variable defined with "def". Defs may be bound (which means they are not truly constant.) Status: var and def are valid anywhere, no warning yet for using "attribute" instead of var, warning for using "static". Static attributes should be turned into top-level vars or defs.
The code completion must be updated to suggest proper keywords.
*** Issue 144394 has been marked as a duplicate of this issue. ***
After this revision http://hg.netbeans.org/javafx/rev/48b4c3b55c2e we should suggest var and def. The rest will be tracked as bugs.
verified in 2008-09-19_02-01-58.zip