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.
Summary: | Error message display for APs sometimes missing | ||
---|---|---|---|
Product: | java | Reporter: | Jesse Glick <jglick> |
Component: | Editor | Assignee: | Dusan Balek <dbalek> |
Status: | RESOLVED FIXED | ||
Severity: | normal | ||
Priority: | P3 | ||
Version: | 6.x | ||
Hardware: | PC | ||
OS: | Linux | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 111293 |
Description
Jesse Glick
2010-03-02 08:37:38 UTC
BTW a Rhino shell (jrunscriptin.kenai.com) confirms that queries are working sanely: f = org.openide.filesystems.FileUtil.toFileObject(new java.io.File(".../project.ant/src/org/netbeans/modules/project/ant/AntBasedProjectFactorySingleton.java")) => MasterFileObject[.../project.ant/src/org/netbeans/modules/project/ant/AntBasedProjectFactorySingleton.java@188d337:7334c9,valid=true] apq = org.netbeans.api.java.queries.AnnotationProcessingQuery.getAnnotationProcessingOptions(f) => org.netbeans.modules.apisupport.project.queries.AnnotationProcessingQueryImpl$ResultImpl@7b94b8 // after #181419: apq.sourceOutputDirectory() => file:.../project.ant/build/classes-generated/ org.netbeans.api.java.classpath.ClassPath.getClassPath(f, org.netbeans.api.java.classpath.JavaClassPathConstants.PROCESSOR_PATH) => .../nbbuild/netbeans/platform/modules/org-netbeans-api-progress.jar:.../nbbuild/netbeans/platform/lib/org-openide-util.jar:.../nbbuild/netbeans/ide/modules/org-netbeans-modules-projectapi.jar:.../nbbuild/netbeans/ide/modules/org-netbeans-modules-project-libraries.jar:.../nbbuild/netbeans/platform/modules/org-openide-awt.jar:.../nbbuild/netbeans/platform/modules/org-openide-dialogs.jar:.../nbbuild/netbeans/platform/modules/org-openide-explorer.jar:.../nbbuild/netbeans/platform/modules/org-openide-loaders.jar:.../nbbuild/netbeans/platform/modules/org-openide-actions.jar:.../nbbuild/netbeans/ide/modules/org-netbeans-modules-projectuiapi.jar:.../nbbuild/netbeans/platform/core/org-openide-filesystems.jar:.../nbbuild/netbeans/platform/modules/org-netbeans-swing-outline.jar:.../nbbuild/netbeans/platform/lib/org-openide-util-lookup.jar:.../nbbuild/netbeans/platform/modules/org-netbeans-swing-tabcontrol.jar:.../nbbuild/netbeans/platform/modules/org-netbeans-modules-editor-mimelookup.jar:.../nbbuild/netbeans/platform/modules/org-netbeans-modules-queries.jar:.../nbbuild/netbeans/platform/modules/org-openide-text.jar:.../nbbuild/netbeans/platform/modules/org-openide-nodes.jar:.../nbbuild/netbeans/platform/lib/org-openide-modules.jar:.../nbbuild/netbeans/platform/modules/org-openide-windows.jar:.../nbbuild/netbeans/ide/modules/org-netbeans-modules-xml-catalog.jar:.../nbbuild/netbeans/ide/modules/org-netbeans-api-xml.jar:.../nbbuild/netbeans/ide/modules/org-apache-xml-resolver.jar:.../o.apache.xml.resolver/external/resolver-1.2.jar:.../nbbuild/netbeans/ide/modules/ext/resolver-1.2.jar:.../project.ant/build/classes APTUtils tries to use a few processors loaded by the system classloader, but these are not instances of Processor from "our" javac (the Processor from "our" javac is loaded by libs.javacapi classloader, not by the system classloader). I prevented that: http://hg.netbeans.org/jet-main/rev/8b7d75efe4aa (In reply to comment #2) > http://hg.netbeans.org/jet-main/rev/8b7d75efe4aa Possibly easier fix (untested): ClassLoader cl = new URLClassLoader(urls.toArray(new URL[0]), ClassLoader.getSystemClassLoader().getParent()); Integrated into 'main-golden', will be available in build *201003040200* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main/rev/8b7d75efe4aa User: Jan Lahoda <jlahoda@netbeans.org> Log: #181432: prevent using/loading NetBeans classes from the system ClassLoader. |