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 198458 - Cannot access public class
Summary: Cannot access public class
Status: RESOLVED INVALID
Alias: None
Product: java
Classification: Unclassified
Component: Editor (show other bugs)
Version: -S1S-
Hardware: PC Windows XP
: P3 normal (vote)
Assignee: Dusan Balek
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-05-09 16:57 UTC by jon80
Modified: 2011-05-10 13:15 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Source code (108.44 KB, application/octet-stream)
2011-05-09 16:57 UTC, jon80
Details

Note You need to log in before you can comment on or make changes to this bug.
Description jon80 2011-05-09 16:57:24 UTC
Created attachment 108197 [details]
Source code 

I can't figure out why the ReadTextFile class is being marked as an error, since it is part of the package:

public class DesktopApplication1 extends SingleFrameApplication {
...

 private void jMenuItem1StateChanged(javax.swing.event.ChangeEvent evt) {                                        
        FileChooser fc = new FileChooser();
        ReadTextFile = new ReadTextFile(fc.getSelectedFileName());
    }  
...
}
Comment 1 Dusan Balek 2011-05-10 12:39:58 UTC
Missing 'ReadTextFile' variable declaration is marked as an error !!!
Comment 2 jon80 2011-05-10 13:08:27 UTC
(In reply to comment #1)
> Missing 'ReadTextFile' variable declaration is marked as an error !!!

What variable?  What do you mean?

In my case ReadTextFile.java is a class contained within the project?
Comment 3 Dusan Balek 2011-05-10 13:15:06 UTC
ReadTextFile = new ReadTextFile(fc.getSelectedFileName());
is parsed as an assignment to the variable named 'ReadTextFile'.