### 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 myField;\n" + + " protected Collection 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( "", @@ -1408,7 +1408,7 @@ IField field = type.getField("myField"); assertEquals( "Wrong type signature", - "Ljava.util.List;", + "Ljava.util.Collection;", field.getTypeSignature()); } }