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.
add this class: public class Foo { public static final String name; static { } public Foo() { } } the constructor is incorrectly highlighted to indicate the uninitialized static variable instead of the static initializer block. if there is no static initializer, the beginning of the class should probably be highlighted instead.
Sorry, but I do not think this is a defect - the current behavior AFAIK corresponds to the behavior of the command line javac. I agree though, that we could try to improve this.
still present 6.0
Any chance of forwarding this to the JDK guys, since it's likely something they should fix on their end?