Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 23731 Details for
Bug 101019
RC3: Type Hierarchy does not find implementers/extenders of inner class/interface in other project
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch101019_org.eclipse.jdt.core.tests.model.txt (text/plain), 2.49 KB, created by
Jerome Lanneluc
on 2005-06-22 10:12:01 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2005-06-22 10:12:01 EDT
Size:
2.49 KB
patch
obsolete
>Index: src/org/eclipse/jdt/core/tests/model/TypeHierarchyTests.java >=================================================================== >RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/TypeHierarchyTests.java,v >retrieving revision 1.45 >diff -u -r1.45 TypeHierarchyTests.java >--- src/org/eclipse/jdt/core/tests/model/TypeHierarchyTests.java 16 Jun 2005 11:36:49 -0000 1.45 >+++ src/org/eclipse/jdt/core/tests/model/TypeHierarchyTests.java 22 Jun 2005 14:11:03 -0000 >@@ -657,6 +657,10 @@ > h.getAllTypes() > ); > } >+/* >+ * Ensures that a type hierarchy on a region contains anonymous/local types in this region >+ * (regression test for bug 48395 Hierarchy on region misses local classes) >+ */ > public void testRegion3() throws JavaModelException { > IPackageFragment pkg = getPackageFragment("TypeHierarchy", "src", "p9"); > IRegion region = JavaCore.newRegion(); >@@ -707,10 +711,40 @@ > deleteProjects(new String[] {"P1", "P2", "P3"}); > } > } >+ > /* >- * Ensures that a type hierarchy on a region contains anonymous/local types in this region >- * (regression test for bug 48395 Hierarchy on region misses local classes) >+ * Ensures that a type hierarchy on a member type with subtypes in another project is correct >+ * (regression test for bug 101019 RC3: Type Hierarchy does not find implementers/extenders of inner class/interface in other project) > */ >+public void testMemberTypeSubtypeDifferentProject() throws CoreException { >+ try { >+ createJavaProject("P1"); >+ createFile( >+ "/P1/X.java", >+ "public class X {\n" + >+ " public class Member {\n" + >+ " }\n" + >+ "}" >+ ); >+ createJavaProject("P2", new String[] {""}, new String[] {"JCL_LIB"}, new String[] {"/P1"}, ""); >+ createFile( >+ "/P2/Y.java", >+ "public class Y extends X.Member {\n" + >+ "}" >+ ); >+ IType focus = getCompilationUnit("/P1/X.java").getType("X").getType("Member"); >+ ITypeHierarchy hierarchy = focus.newTypeHierarchy(null/*no progress*/); >+ assertHierarchyEquals( >+ "Focus: Member [in X [in X.java [in <default> [in <project root> [in P1]]]]]\n" + >+ "Super types:\n" + >+ " Object [in Object.class [in java.lang [in "+ getExternalJCLPathString() + " [in P1]]]]\n" + >+ "Sub types:\n" + >+ " Y [in Y.java [in <default> [in <project root> [in P2]]]]\n", >+ hierarchy); >+ } finally { >+ deleteProjects(new String[] {"P1", "P2"}); >+ } >+} > > /** > * Ensures that the superclass can be retrieved for a source type's unqualified superclass.
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 101019
:
23648
| 23731