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.
The error annotations don't accept the endorsed standard overerride mechanism : See : http://java.sun.com/j2se/1.5.0/docs/guide/standards/ or https://jax-ws.dev.java.net/nonav/2.1.2m1/docs/jaxws-tools.html#running_on_jdk6 Even if java.endorsed.dirs property is set (in etc/netbeans.conf) or if endorsed jars are put to JAVA_HOME/jre/lib/endorsed we still can see the error anotations though the classes are succesfully compiled. See also the issue 112029.
Created attachment 46785 [details] Error Annotation
I do no think this is a problem in Java editor or Java infrastructure - these simply use ClassPath that they get for the given file. If the classpath is wrong, there is nothing that the Java infrastructure could do. I am not sure if this is problem in the java/j2seplatform or in the correspodning project type.
Endorsed libs are part of the boot cp (at least on linux).
Look at attached picture. Reassign to appropriate issue category if you think it's not in java/platform.
The endorsed libs are on boot cp (at least in my setup). Either add a test case or or platform log. Simple app: public final class Test { public static void main (String...args) { System.out.println (System.getProperty("sun.boot.class.path")); } } Output of ls /usr/lib/jvm/java-1.6.0/jre/lib/endorsed: je.jar Output of the app java Test: /usr/lib/jvm/java-1.6.0/jre/lib/endorsed/je.jar:/usr/lib/jvm/java-1.6.0/jre/lib/resources.jar:/usr/lib/jvm/java-1.6.0/jre/lib/rt.jar:/usr/lib/jvm/java-1.6.0/jre/lib/sunrsasign.jar:/usr/lib/jvm/java-1.6.0/jre/lib/jsse.jar:/usr/lib/jvm/java-1.6.0/jre/lib/jce.jar:/usr/lib/jvm/java-1.6.0/jre/lib/charsets.jar:/usr/lib/jvm/java-1.6.0/jre/classes Conclusion is obvious.
Seems that some recent changes fixed the "error annotation" problem. Can not reproduce any more.