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.
Summary: | Cannot access public class | ||
---|---|---|---|
Product: | java | Reporter: | jon80 <jon80> |
Component: | Editor | Assignee: | 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 |
Missing 'ReadTextFile' variable declaration is marked as an error !!! (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? ReadTextFile = new ReadTextFile(fc.getSelectedFileName()); is parsed as an assignment to the variable named 'ReadTextFile'. |
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()); } ... }