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.
Steps to reproduce: 1.Fresh user dir. 2.Open core module. 3.Open org.netbeans.core.ShortcutsFolder. 4.Find InstanceCookie. 5.Use Go To -> Source(InstanceCookie) I get information dialog: Source org.openide.cookies.InstanceCookie not found in Filesystems. Today build 200406281800, JDK 1.5.0 b57, Linux RH 9. It used to work recently.
Assigning to editor.
InstanceCookie source is not provided by the Java/JMI infrastructure. Even though JavaMetamodel.setClassPath(FileObject, boolean) is called with parameter true to prefer sources, a JavaClass representing InstanceCookie comes from respective jar file.
Reassigning back to javacore.
This seems to be caused by the broken source for binary query for netbeans projects. Javacore gets empty array when calling: SourceForBinaryQuery.findSourceRoots (url).getRoots() on any jar produced by a NB project (e.g. openide.jar, etc. - basically any item on NB project's COMPILE classpath) After discussion with Tomas Zezula I am reassigning this to him and changing priority to P1.
It is a problem of the apisupport SourceForBinaryQueryImpl.
The SFBQ for netbeans modules delegates to FreeForm project.
Removing nbproject/project.xml; /cvs/nbbuild/nbproject/project.xml,v <-- project.xml new revision: delete; previous revision: 1.1 done