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.

Bug 137624 - Completion: Typing of Frame in editor generates cannot find symbol error
Summary: Completion: Typing of Frame in editor generates cannot find symbol error
Status: VERIFIED INVALID
Alias: None
Product: javafx
Classification: Unclassified
Component: Editor (show other bugs)
Version: 6.x
Hardware: All Windows XP
: P4 blocker (vote)
Assignee: Petr Nejedly
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2008-06-18 20:29 UTC by Lark Fitzgerald
Modified: 2009-10-30 10:40 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Lark Fitzgerald 2008-06-18 20:29:48 UTC
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.
Comment 1 Lark Fitzgerald 2008-06-18 20:35:53 UTC
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
Comment 2 Lark Fitzgerald 2008-07-08 03:13:11 UTC
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
Comment 3 David Strupl 2008-07-08 10:40:59 UTC
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.
Comment 4 David Strupl 2008-07-15 09:58:08 UTC
Marking as "future" as it will not be solved for the preview.
Comment 5 Petr Nejedly 2009-10-30 10:09:22 UTC
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<----
Comment 6 Alexandr Scherbatiy 2009-10-30 10:40:56 UTC
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{}
-----------------------------------------