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 57818 - JavaClass.findSubTypes does not find classes in dist/*.jar
Summary: JavaClass.findSubTypes does not find classes in dist/*.jar
Status: CLOSED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Unsupported (show other bugs)
Version: 4.x
Hardware: All All
: P2 blocker (vote)
Assignee: Martin Matula
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-04-13 09:29 UTC by David Kaspar
Modified: 2007-09-26 09:14 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 David Kaspar 2005-04-13 09:29:24 UTC
How to reproduce:
Have a project called Library.
Create a Class called MyClass which extends, for example, java.util.ArrayList.
Compile the project.
Create a project called Application.
Add a ${Library.dir}/dist/*.jar into the project dependencies/libraries using
"Add Jar/Zip File..." in Project Settings dialog.
Invoke an action which executes following code:
JavaClass jc = findTheArrayListClass (); // this works
Collection c = jc.findSubTypes (true);
// ERROR - collection c does not contain MyClass.
Comment 1 Martin Matula 2005-04-13 15:26:53 UTC
Fixed in main trunk.

Checking in src/org/netbeans/modules/javacore/ExclusiveMutex.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java,v  <--
 ExclusiveMutex.java
new revision: 1.45; previous revision: 1.44
done
Checking in src/org/netbeans/modules/refactoring/classpath/Util.java;
/cvs/refactoring/src/org/netbeans/modules/refactoring/classpath/Util.java,v  <--
 Util.java
new revision: 1.8; previous revision: 1.7
done
Comment 2 Martin Matula 2005-04-13 15:37:19 UTC
David, could you please verify the fix? Thanks in advance.
Comment 3 Tomas Hurka 2005-04-13 15:57:42 UTC
Me and Honza B reviewed the diff and it seems to be OK. We approve the fix for release41 branch. 
Comment 4 David Kaspar 2005-04-13 16:10:18 UTC
Verified in release41.
Comment 5 Martin Matula 2005-04-14 16:08:16 UTC
Fixed in release41 branch.

Checking in src/org/netbeans/modules/javacore/ExclusiveMutex.java;
/cvs/java/javacore/src/org/netbeans/modules/javacore/ExclusiveMutex.java,v  <--
 ExclusiveMutex.java
new revision: 1.43.4.4; previous revision: 1.43.4.3
done
Checking in src/org/netbeans/modules/refactoring/classpath/Util.java;
/cvs/refactoring/src/org/netbeans/modules/refactoring/classpath/Util.java,v  <--
 Util.java
new revision: 1.7.2.1; previous revision: 1.7
done
Comment 6 Quality Engineering 2007-09-20 09:58:44 UTC
Reorganization of java component