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 76036 Details for
Bug 194432
IJavaProject.findType(String, String, WorkingCopyOwner) return the wrong duplicate element
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Test renamed and fixed with the correct expected type
194432.txt (text/plain), 1.78 KB, created by
Jerome Lanneluc
on 2007-08-14 08:52:22 EDT
(
hide
)
Description:
Test renamed and fixed with the correct expected type
Filename:
MIME Type:
Creator:
Jerome Lanneluc
Created:
2007-08-14 08:52:22 EDT
Size:
1.78 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/ResolveTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ResolveTests.java,v >retrieving revision 1.80 >diff -u -r1.80 ResolveTests.java >--- src/org/eclipse/jdt/core/tests/model/ResolveTests.java 14 Aug 2007 12:52:23 -0000 1.80 >+++ src/org/eclipse/jdt/core/tests/model/ResolveTests.java 14 Aug 2007 12:53:28 -0000 >@@ -2242,4 +2242,36 @@ > foundType); > } > >+/* >+ * Ensures that a working copy is put in the right order on the classpath (thus it is found before a type on another classpath entry) >+ * (regression test for bug 194432 IJavaProject.findType(String, String, WorkingCopyOwner) return the wrong duplicate element) >+ */ >+public void testWorkingCopyOrder2() throws Exception { >+ String jarName = "bug194432.jar"; >+ String srcName = "bug194432_src.zip"; >+ try { >+ String[] pathAndContents = new String[] { >+ "test/p/Type.java", >+ "package test.p;\n" + >+ "public class Type {\n" + >+ "}\n" >+ }; >+ addLibrary(jarName, srcName, pathAndContents, JavaCore.VERSION_1_4); >+ this.workingCopies = new ICompilationUnit[1]; >+ this.workingCopies[0] = getWorkingCopy( >+ "/Resolve/src/test/p/Type.java", >+ "package test.p;\n" + >+ "public class Type {\n" + >+ "}\n" >+ ); >+ IJavaProject javaProject = getJavaProject("Resolve"); >+ IType foundType = javaProject.findType("test.p", "Type", this.wcOwner); >+ assertElementEquals( >+ "Unexpected type", >+ "Type [in [Working copy] Type.java [in test.p [in src [in Resolve]]]]", >+ foundType); >+ } finally { >+ removeLibrary(this.currentProject, jarName, srcName); >+ } >+} > }
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 194432
: 76036