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 23146 - Java parser was not restarted
Summary: Java parser was not restarted
Status: CLOSED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 3.x
Hardware: PC Windows XP
: P3 blocker (vote)
Assignee: Tomas Hurka
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-05 05:25 UTC by tommcatt
Modified: 2007-09-26 09:14 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description tommcatt 2002-05-05 05:25:05 UTC
I created a new class.  As I was editing, I noticed the 
current line was being highlighted as an error.  It would 
stay highlighted until the line was complete, kindly 
reminding be that the line was not syntactically correct 
until it was finished.

Also, the class declaration line remains highlighted.  The 
line is:

    public class VideoMessagePacket {

I hovered over the "X" in the margin and the hint said:
"class Class is public, should be declared in a file named 
Class.java"

The file is named VideoMessagePacket.java, as it should 
be.  The code compiles without error but the line remains 
highlighted even after compile.
Comment 1 tommcatt 2002-05-05 06:50:41 UTC
I was never able to duplicate the second problem (the class
declaration line being highlighted).  Even in the one class where it
happened, subsequent edits and compiles seem to have corrected it.  It
is now gone.  It happened only on the first class I created after
installing the new version, which may or may not be significant.

However, all partially completed lines are still flagged while being
edited, which is a nuisance.
Comment 2 Jan Lahoda 2002-05-06 07:45:57 UTC
So, I think that the problem is that Java parser was not restarted
properly.
For the annoying annotations (highlights), I am not sure whether it is
possible to solve this problem, but the marking should be done via
underline of error in near future, so it should be less disturbing.
Re-assigning to java module.
Comment 3 Svata Dedic 2002-05-09 16:28:12 UTC
:-)
Comment 4 Tomas Hurka 2002-05-20 14:36:30 UTC
Closing as worksforme. Second problem (the class
declaration line being highlighted) seems to be OK. There is no way to recognize partially completed lines. They will remain highlighted (now uderlined) until there are correct.
Comment 5 Quality Engineering 2003-07-01 13:26:02 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.
Comment 6 Quality Engineering 2003-07-01 13:26:50 UTC
Resolved for 3.4.x or earlier, no new info since then -> closing.