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 132930 Details for
Bug 272706
[Model] Generics lost on IField when coming from .class files
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
[patch]
Additional patch for tests
v01.txt (text/plain), 2.13 KB, created by
Frederic Fusier
on 2009-04-23 09:48:48 EDT
(
hide
)
Description:
Additional patch for tests
Filename:
MIME Type:
Creator:
Frederic Fusier
Created:
2009-04-23 09:48:48 EDT
Size:
2.13 KB
patch
obsolete
>### Eclipse Workspace Patch 1.0 >#P org.eclipse.jdt.core.tests.model >Index: src/org/eclipse/jdt/core/tests/model/ClassFileTests.java >=================================================================== >RCS file: /cvsroot/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/model/ClassFileTests.java,v >retrieving revision 1.43 >diff -u -r1.43 ClassFileTests.java >--- src/org/eclipse/jdt/core/tests/model/ClassFileTests.java 17 Apr 2009 15:26:20 -0000 1.43 >+++ src/org/eclipse/jdt/core/tests/model/ClassFileTests.java 23 Apr 2009 13:46:55 -0000 >@@ -48,7 +48,7 @@ > > public void setUpSuite() throws Exception { > super.setUpSuite(); >- IJavaProject javaProject = createJavaProject("P", new String[0], new String[] {"JCL_LIB", "/P/lib"}, ""); >+ IJavaProject javaProject = createJavaProject("P", new String[0], new String[] {"JCL15_LIB", "/P/lib"}, "", JavaCore.VERSION_1_5); > String[] pathAndContents = new String[] { > "nongeneric/A.java", > "package nongeneric;\n" + >@@ -86,9 +86,9 @@ > "}", > "generic/GenericField.java", > "package generic;\n" + >- "import java.util.List;\n" + >+ "import java.util.Collection;\n" + > "public class GenericField {\n" + >- " protected List<String> myField;\n" + >+ " protected Collection<String> myField;\n" + > "}", > "annotated/X.java", > "package annotated;\n" + >@@ -737,7 +737,7 @@ > * Ensures that the default value for an regular method is correct. > */ > public void testDefaultValue4() throws JavaModelException { >- IType type = getPackageFragmentRoot("P", getExternalJCLPathString()).getPackageFragment("java.lang").getClassFile("Object.class").getType(); >+ IType type = getPackageFragmentRoot("P", getExternalJCLPathString(JavaCore.VERSION_1_5)).getPackageFragment("java.lang").getClassFile("Object.class").getType(); > IMethod method = type.getMethod("toString", new String[0]); > assertMemberValuePairEquals( > "<null>", >@@ -1408,7 +1408,7 @@ > IField field = type.getField("myField"); > assertEquals( > "Wrong type signature", >- "Ljava.util.List<Ljava.lang.String;>;", >+ "Ljava.util.Collection<Ljava.lang.String;>;", > field.getTypeSignature()); > } > }
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 272706
:
132249
| 132930