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 18858 - "Errors during parsing" in Explorer for classes opened in the editor
Summary: "Errors during parsing" in Explorer for classes opened in the editor
Status: CLOSED DUPLICATE of bug 18584
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows 3.1/NT
: P3 blocker (vote)
Assignee: issues@java
URL:
Keywords:
: 18857 (view as bug list)
Depends on:
Blocks:
 
Reported: 2001-12-20 11:07 UTC by ats37
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Sample java file (5.07 KB, text/plain)
2001-12-20 15:12 UTC, ats37
Details

Note You need to log in before you can comment on or make changes to this bug.
Description ats37 2001-12-20 11:07:36 UTC
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.
Comment 1 ats37 2001-12-20 11:11:13 UTC
*** Issue 18857 has been marked as a duplicate of this issue. ***
Comment 2 Tomas Hurka 2001-12-20 11:18:52 UTC
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.
Comment 3 ats37 2001-12-20 15:12:47 UTC
Created attachment 3909 [details]
Sample java file
Comment 4 ats37 2001-12-20 15:41:25 UTC
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.
Comment 5 Tomas Hurka 2001-12-20 16:08:08 UTC
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 ***
Comment 6 Quality Engineering 2003-07-01 13:12:15 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.
Comment 7 Quality Engineering 2003-07-01 13:15:52 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.