Community
Participate
Working Groups
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.
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.
Elements for local/anonymous types were added. Type hierarchies now include such types.
Verified.