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 23281 Details for
Bug 99606
Subtype not found if parameterized on inner class
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
patch99606_org.eclipse.jdt.core.tests.model.txt (text/plain), 2.19 KB, created by
Jerome Lanneluc
on 2005-06-16 06:22:22 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2005-06-16 06:22:22 EDT
Size:
2.19 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.44 >diff -u -r1.44 TypeHierarchyTests.java >--- src/org/eclipse/jdt/core/tests/model/TypeHierarchyTests.java 9 May 2005 09:17:48 -0000 1.44 >+++ src/org/eclipse/jdt/core/tests/model/TypeHierarchyTests.java 15 Jun 2005 10:56:59 -0000 >@@ -34,7 +34,7 @@ > this.displayName = true; > } > static { >-// TESTS_NAMES= new String[] { "testBinaryTypeHiddenByOtherJar" }; >+// TESTS_NAMES= new String[] { "testGeneric7" }; > } > public static Test suite() { > return buildTestSuite(TypeHierarchyTests.class); >@@ -107,6 +107,17 @@ > "public class A<E> implements I<E> {\n" + > "}" > ); >+ createFile( >+ "/TypeHierarchy15/src/X99606.java", >+ "public class X99606 extends Y99606<X99606.Color> {\n" + >+ " static class Color {}\n" + >+ "}" >+ ); >+ createFile( >+ "/TypeHierarchy15/src/Y99606.java", >+ "public class Y99606<T> {\n" + >+ "}" >+ ); > } > > /* (non-Javadoc) >@@ -961,6 +972,22 @@ > IType[] subtypes = hierarchy.getSubtypes(type); > assertEquals("Unexpected key", "Lutil/Map<TK;TV;>;", subtypes.length < 2 ? null : subtypes[1].getKey()); > } >+/* >+ * Ensures that a hierarchy on a generic type that is extended using a member as a type parameter can be opened >+ * (regression test for bug 99606 Subtype not found if parameterized on inner class) >+ */ >+public void testGeneric7() throws JavaModelException { >+ IType type = getCompilationUnit("/TypeHierarchy15/src/Y99606.java").getType("Y99606"); >+ ITypeHierarchy hierarchy = type.newTypeHierarchy(null); >+ assertHierarchyEquals( >+ "Focus: Y99606 [in Y99606.java [in <default> [in src [in TypeHierarchy15]]]]\n" + >+ "Super types:\n" + >+ " Object [in Object.class [in java.lang [in "+ getExternalJCLPathString("1.5") + " [in TypeHierarchy15]]]]\n" + >+ "Sub types:\n" + >+ " X99606 [in X99606.java [in <default> [in src [in TypeHierarchy15]]]]\n", >+ hierarchy >+ ); >+} > /** > * Ensures the correctness of all classes in a type hierarchy based on a region. > */
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 99606
:
23153
|
23154
|
23280
| 23281