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.

Bug 45670 - Go To -> Source does not work
Summary: Go To -> Source does not work
Status: RESOLVED FIXED
Alias: None
Product: projects
Classification: Unclassified
Component: Ant (show other bugs)
Version: 4.x
Hardware: PC Linux
: P1 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2004-06-29 12:58 UTC by mslama
Modified: 2004-08-13 12:10 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description mslama 2004-06-29 12:58:35 UTC
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.
Comment 1 Martin Matula 2004-06-29 13:38:09 UTC
Assigning to editor.
Comment 2 Dusan Balek 2004-06-30 11:56:02 UTC
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.

Comment 3 Dusan Balek 2004-06-30 11:56:58 UTC
Reassigning back to javacore.

Comment 4 Martin Matula 2004-07-01 14:22:53 UTC
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.
Comment 5 Tomas Zezula 2004-07-01 16:31:46 UTC
It is a problem of the apisupport SourceForBinaryQueryImpl.
Comment 6 Tomas Zezula 2004-07-01 17:05:52 UTC
The SFBQ for netbeans modules delegates to FreeForm project.
Comment 7 Tomas Zezula 2004-07-02 19:15:29 UTC
Removing nbproject/project.xml;
/cvs/nbbuild/nbproject/project.xml,v  <--  project.xml
new revision: delete; previous revision: 1.1
done