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 58994 - Keep getting undefined symbol when accessing another classes variables
Summary: Keep getting undefined symbol when accessing another classes variables
Status: RESOLVED DUPLICATE of bug 32882
Alias: None
Product: editor
Classification: Unclassified
Component: -- Other -- (show other bugs)
Version: 4.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@editor
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-05-17 15:42 UTC by posti
Modified: 2007-11-05 13:44 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 posti 2005-05-17 15:42:03 UTC
After i updated to 4.1 RC2 (uninstalled previous one) and now with 4.1 i've 
keep getting cannot find symbol. Can't really do any programming work with 
netbeans since i'm allways getting those errors only restarting netbeans helps.

Example i have class bob in folder/package Game.gfx

it has public int center_off_x and center_off_y

then i have class item in folder/package Game.items

it has public int x and y and line public bob sprite;

Then i do this line 

return ( x + sprite.center_off_x );

netbeans gives me error 

cannot find symbol
symbol : variable center_off_x
location: class Game.gfx.bob
operator + cannot be applied to int,Game.gfx.bob.center_off_x
incompatible types
found : <nulltype>
required: int

If close netbeans and start it again without making any changes this code 
works. Now i can allways use variable center_off_x without an hassle. But this 
means i have to restart netbeans every time a add variable to a class that is 
accessed from another class!!

Please fix this soon it's drivin me crazy :)
Comment 1 posti 2005-05-17 15:44:50 UTC
Also like to add that if i do sprite. and list is snow center_off_x is snown 
in the list even when it's not working.
Comment 2 Martin Matula 2005-05-17 15:52:05 UTC
This is a known issue. It will be fixed in the next release.

*** This issue has been marked as a duplicate of 32882 ***