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.
I installed the updated Java Source Files module (version 1.7.1.1.1/200112041930-jdk14), which "has parser and internal compiler based on JDK 1.4". However, I'm running NetBeans under JDK 1.3.1_01 (so perhaps I shouldn't have updated it, but it's too late now). Now, every time I open a file in the Source Code editor, the icon in the Explorer gets a red cross (tooltip "Errors during parsing." and trying to expand it just shows a single "Error" entry. When I close the file in the editor window, the explorer entry goes back to normal, and can be expanded to view the class etc. just fine. It's only while they're open in the source editor that there's a problem, and it does it with every .java file.
*** Issue 18857 has been marked as a duplicate of this issue. ***
Well, I can assure you that this problem does not occur with every .java file. It does not matter that you are using JDK 1.3.1_01. Does it occur for the files from sampledir directory? MemoryView.java for example? It would be great if you can attach some test .java file. Thanks.
Created attachment 3909 [details] Sample java file
You're right, it's not every file - it does do it with all the source files in the project I was working on (the source for xdoclet, which I originally downloaded from sourceforge with CVS), but I switched to another project and files in there were okay. So I copied some of the xdoclet files across; since they still gave the same problem, I've attached one of them. Could it be to do with line termination, perhaps? I notice the xdoclet files have CRLF, while the others (which were originally created with NetBeans) only use LF.
Thanks for the sample file. With the file I can reproduce it here. The problem is caused by Tabs used for indentation. See issue #18584 *** This issue has been marked as a duplicate of 18584 ***
Resolved for 3.3.x or earlier, no new info since then -> closing.
Resolved for 3.4.x or earlier, no new info since then -> closing.