Bug 36143 - Type hierarchy doesn't include anonymous subclasses
Summary: Type hierarchy doesn't include anonymous subclasses
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 2.1   Edit
Hardware: PC Windows 2000
: P3 enhancement (vote)
Target Milestone: 3.0 M4   Edit
Assignee: Jerome Lanneluc CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-04-07 11:34 EDT by John Arthorne CLA
Modified: 2003-10-08 11:33 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 John Arthorne CLA 2003-04-07 11:34:48 EDT
Build: 2.1

Given the following types:

public class A {
  public A(String param) {
  }
  public A() {
  }
}

public class B {
  public void doit() {
    A a = new A("") {
      public void foo() {
      }
    };
    new A() {
      public void foo() {
      }
    }.foo();
    class SubA extends A {
      public void foo() {
      }
    };
  }
}

If I focus the type hierarchy view on subtypes of 'A', it does not include the
three subclasses contained in B.  If B is in binary form (jar file), then the
sub-types are included.  It would be nice to be able to find these subtypes all
the time.
Comment 1 Philipe Mulet CLA 2003-04-08 05:09:00 EDT
Type hierarchies are organizations of Java element handles. Local types are not 
representable using Java elements at the moment (only goes down to method 
level).

We are considering adding elements for local types for 2.2.
Comment 2 Jerome Lanneluc CLA 2003-09-24 06:51:58 EDT
Elements for local/anonymous types were added. Type hierarchies now include 
such types.
Comment 3 David Audel CLA 2003-10-08 11:33:11 EDT
Verified.