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 often get compile errors when I'm using org.openide.util.Task in my code. What's wrong with that class?? Changing compiler to Fastjavac fix the problem. But neither external nor internal compilation works! The typical error is: org/netbeans/modules/vcscore/versioning/RevisionEditorSupport.java [75:1] cannot resolve symbol symbol : class Task location: package util import org.openide.util.Task; ^ 1 error Errors compiling RevisionEditorSupport [Up-to-date; 1.3] (experimental). Of course I have mounted openide.jar. The automatic parser reports that error as well. See the attached screenshot.
Created attachment 7573 [details] The screenshot of the parser error.
org.openide.util.Task can cause serious problems. But the bug is in javac. Take a look at openide/build.xml for the workaround (<target name="13javac-workaround">)
To be more explicit about the 13javac-workaround reference, this was posted to openide-dev@netbeans.org by Jesse Glick on Fri, 01 Nov 2002 16:01:16 -0500 in the thread on "The mysterious org.openide.util.Task class": Get NB sources, run: ant -f nbbuild/build.xml all-openide and use openide/openide-13javac-workaround.jar in your classpath before openide/netbeans/lib/openide.jar. See any of the many NB build scripts which do this.
The openide-dev email thread is at: <http://openide.netbeans.org/servlets/ReadMsg?msgId=399542&listName=dev>
x
Filed as a JDK bug: http://developer.java.sun.com/developer/bugParade/bugs/4757175.html
See also: http://developer.java.sun.com/developer/bugParade/bugs/4401373.html