Lines 48-54
Link Here
|
48 |
|
48 |
|
49 |
public void setUpSuite() throws Exception { |
49 |
public void setUpSuite() throws Exception { |
50 |
super.setUpSuite(); |
50 |
super.setUpSuite(); |
51 |
IJavaProject javaProject = createJavaProject("P", new String[0], new String[] {"JCL_LIB", "/P/lib"}, ""); |
51 |
IJavaProject javaProject = createJavaProject("P", new String[0], new String[] {"JCL15_LIB", "/P/lib"}, "", JavaCore.VERSION_1_5); |
52 |
String[] pathAndContents = new String[] { |
52 |
String[] pathAndContents = new String[] { |
53 |
"nongeneric/A.java", |
53 |
"nongeneric/A.java", |
54 |
"package nongeneric;\n" + |
54 |
"package nongeneric;\n" + |
Lines 86-94
Link Here
|
86 |
"}", |
86 |
"}", |
87 |
"generic/GenericField.java", |
87 |
"generic/GenericField.java", |
88 |
"package generic;\n" + |
88 |
"package generic;\n" + |
89 |
"import java.util.List;\n" + |
89 |
"import java.util.Collection;\n" + |
90 |
"public class GenericField {\n" + |
90 |
"public class GenericField {\n" + |
91 |
" protected List<String> myField;\n" + |
91 |
" protected Collection<String> myField;\n" + |
92 |
"}", |
92 |
"}", |
93 |
"annotated/X.java", |
93 |
"annotated/X.java", |
94 |
"package annotated;\n" + |
94 |
"package annotated;\n" + |
Lines 737-743
Link Here
|
737 |
* Ensures that the default value for an regular method is correct. |
737 |
* Ensures that the default value for an regular method is correct. |
738 |
*/ |
738 |
*/ |
739 |
public void testDefaultValue4() throws JavaModelException { |
739 |
public void testDefaultValue4() throws JavaModelException { |
740 |
IType type = getPackageFragmentRoot("P", getExternalJCLPathString()).getPackageFragment("java.lang").getClassFile("Object.class").getType(); |
740 |
IType type = getPackageFragmentRoot("P", getExternalJCLPathString(JavaCore.VERSION_1_5)).getPackageFragment("java.lang").getClassFile("Object.class").getType(); |
741 |
IMethod method = type.getMethod("toString", new String[0]); |
741 |
IMethod method = type.getMethod("toString", new String[0]); |
742 |
assertMemberValuePairEquals( |
742 |
assertMemberValuePairEquals( |
743 |
"<null>", |
743 |
"<null>", |
Lines 1408-1414
Link Here
|
1408 |
IField field = type.getField("myField"); |
1408 |
IField field = type.getField("myField"); |
1409 |
assertEquals( |
1409 |
assertEquals( |
1410 |
"Wrong type signature", |
1410 |
"Wrong type signature", |
1411 |
"Ljava.util.List<Ljava.lang.String;>;", |
1411 |
"Ljava.util.Collection<Ljava.lang.String;>;", |
1412 |
field.getTypeSignature()); |
1412 |
field.getTypeSignature()); |
1413 |
} |
1413 |
} |
1414 |
} |
1414 |
} |