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 44656 Details for
Bug 139555
[hierarchy] Opening a class from Type hierarchy will give the wrong one if source and compiled are in defined in project
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Regression test
139555_tests.txt (text/plain), 2.07 KB, created by
Jerome Lanneluc
on 2006-06-16 12:11:06 EDT
(
hide
)
Description:
Regression test
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2006-06-16 12:11:06 EDT
Size:
2.07 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/TypeHierarchyTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/TypeHierarchyTests.java,v >retrieving revision 1.61 >diff -u -r1.61 TypeHierarchyTests.java >--- src/org/eclipse/jdt/core/tests/model/TypeHierarchyTests.java 16 Jun 2006 11:15:32 -0000 1.61 >+++ src/org/eclipse/jdt/core/tests/model/TypeHierarchyTests.java 16 Jun 2006 16:12:53 -0000 >@@ -1522,6 +1522,45 @@ > deleteProject("P"); > } > } >+/* >+ * Ensure that the order of roots is taken into account when a type is present in multiple roots. >+ * (regression test for bug 139555 [hierarchy] Opening a class from Type hierarchy will give the wrong one if source and compiled are in defined in project) >+ */ >+public void testRootOrder() throws CoreException, IOException { >+ try { >+ IJavaProject project = createJavaProject("P", new String[] {"abc"}, new String[] {"JCL_LIB"}, "bin"); >+ createFolder("/P/abc/p"); >+ createFile( >+ "/P/abc/p/X.java", >+ "package p;\n"+ >+ "public class X {}" >+ ); >+ createFile( >+ "/P/abc/p/Y.java", >+ "package p;\n"+ >+ "public class Y extends X {}" >+ ); >+ addLibrary(project, "lib.jar", "libsrc.zip", new String[] { >+ "p/X.java", >+ "package p;\n"+ >+ "public class X {}", >+ "p/Y.java", >+ "package p;\n"+ >+ "public class Y extends X {}" >+ }, "1.4"); >+ IType type = getCompilationUnit("/P/abc/p/X.java").getType("X"); >+ ITypeHierarchy hierarchy = type.newTypeHierarchy(null); >+ assertHierarchyEquals( >+ "Focus: X [in X.java [in p [in abc [in P]]]]\n" + >+ "Super types:\n" + >+ " Object [in Object.class [in java.lang [in "+ getExternalJCLPathString() + "]]]\n" + >+ "Sub types:\n" + >+ " Y [in Y.java [in p [in abc [in P]]]]\n", >+ hierarchy); >+ } finally { >+ deleteProject("P"); >+ } >+} > /** > * 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 139555
:
44653
| 44656