Bug 16494 - newSuperTypeHierarchy on binary type returns empty hierarchy
Summary: newSuperTypeHierarchy on binary type returns empty hierarchy
Status: VERIFIED WORKSFORME
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.0   Edit
Hardware: PC Windows 2000
: P3 major (vote)
Target Milestone: 2.0 F2   Edit
Assignee: Philipe Mulet CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2002-05-20 18:30 EDT by Erich Gamma CLA
Modified: 2002-06-03 07:17 EDT (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Erich Gamma CLA 2002-05-20 18:30:08 EDT
I don't have an isolated test case, but here is what I'm seeing.

1) create a project with the junit.jar as an external library
2) find the type junit.framework.TestCase
3) ask the type for its super type hierarchy:
       ITypeHierarchy typeHier= type.newSupertypeHierarchy(null);

->get back an empty type hierarchy

Executing the same code with the junit source code loaded return the correct
type hierarchy.

This problem block the user from creating a TestCase using the JUnit TestCase 
wizard. I've disabled the code that tests for a subclass for now.
Comment 1 Jerome Lanneluc CLA 2002-05-22 06:08:01 EDT
I could not reproduce in build 20020521. Asking the binary type TestCase (in 
external jar junit.jar) for its super type hierarchy returns the following 
hierarchy:
Focus: junit.framework.TestCase
Super types:
  TestCase [in TestCase.class [in junit.framework [in 
D:\eclipse\sdk\eclipse\plugins\org.junit_3.7.0\junit.jar [in Test]]]]
    Test [in Test.class [in junit.framework [in 
D:\eclipse\sdk\eclipse\plugins\org.junit_3.7.0\junit.jar [in Test]]]]
    Assert [in Assert.class [in junit.framework [in 
D:\eclipse\sdk\eclipse\plugins\org.junit_3.7.0\junit.jar [in Test]]]]
      Object [in Object.class [in java.lang [in D:\ive04292002
\ive\lib\jclMax\classes.zip [in Test]]]]
Sub types:
  TestCase [in TestCase.class [in junit.framework [in 
D:\eclipse\sdk\eclipse\plugins\org.junit_3.7.0\junit.jar [in Test]]]]

Do you have more details?
Comment 2 Erich Gamma CLA 2002-05-26 15:30:10 EDT
cannot reproduce in F1 anymore - closing
Comment 3 Philipe Mulet CLA 2002-06-03 07:17:12 EDT
Cannot reproduce either.