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

Summary: Cannot access public class
Product: java Reporter: jon80 <jon80>
Component: EditorAssignee: Dusan Balek <dbalek>
Status: RESOLVED INVALID    
Severity: normal    
Priority: P3    
Version: -S1S-   
Hardware: PC   
OS: Windows XP   
Issue Type: DEFECT Exception Reporter:
Attachments: Source code

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'.