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 6.1 (Build 200804211638) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) fx NB61 nighly plugin: 269 1. Say you have the following source: import javafx.gui.*; 2. You then type: Frame The editor shows error: cannot find symbol Symbol: variable Frame Frame was included in the import statement so it should behave more like String in java where it says identifier expected, Frame should say something like attributes expected.
Note: Typing { and pressing enter makes Frame recognizable to the editor. This is not a AST issue. Logged Jira: http://openjfx.java.sun.com/jira/browse/JFXC-1373
This is reproducible using: Product Version: NetBeans IDE 6.1 (Build 200804211638) Java: 1.6.0_10-beta; Java HotSpot(TM) Client VM 11.0-b11 System: Windows Vista version 6.0 running on x86; Cp1252; en_US (nb) fx NB61 continuous plugin: 313
This does not depend on the broken tree. If I understand correctly the user is confused with the error message. We copy the message from the compiler. I will reopen the compiler issue about it ... but I am not sure whether they will do something about it. From my point of view this is P4.
Marking as "future" as it will not be solved for the preview.
The behavior is OK, not a bug. It explicitly mentions "variable Xxx", that is, the construct so far looks like referencing a variable and such a variable was not declared. Note that the following code is perfectly valid (updated to current runtime, no Frame anymore) ----8<---- import javafx.scene.*; var Scene; Scene ----8<----
The following code is not valid: ----------------------------------------- import javafx.stage.*; Stage ----------------------------------------- Main.fx:10: cannot find symbol symbol : variable Stage location: class javafxapplication1.Main Stage 1 error Use the valid one instead ----------------------------------------- import javafx.stage.*; Stage{} -----------------------------------------