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 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.
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.
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.
:-)
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.
Resolved for 3.4.x or earlier, no new info since then -> closing.