Lines 9076-9079
Link Here
|
9076 |
assertTrue("Not a capture", typeBinding.isCapture()); |
9076 |
assertTrue("Not a capture", typeBinding.isCapture()); |
9077 |
assertNull("No binary type", typeBinding.getBinaryName()); |
9077 |
assertNull("No binary type", typeBinding.getBinaryName()); |
9078 |
} |
9078 |
} |
|
|
9079 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=185129 |
9080 |
public void test0273() throws JavaModelException { |
9081 |
this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); |
9082 |
String contents = |
9083 |
"import test0273.B;\n" + |
9084 |
"import test0273.A;\n" + |
9085 |
"public class X {\n" + |
9086 |
" Object foo() {\n" + |
9087 |
" return new B(new A());\n" + |
9088 |
" }\n" + |
9089 |
" void bar(String s) {\n" + |
9090 |
" System.out.println(s);\n" + |
9091 |
" }\n" + |
9092 |
"}"; |
9093 |
ASTNode node = buildAST( |
9094 |
contents, |
9095 |
this.workingCopy, |
9096 |
false); |
9097 |
assertEquals("Not a compilation unit", ASTNode.COMPILATION_UNIT, node.getNodeType()); |
9098 |
CompilationUnit unit = (CompilationUnit) node; |
9099 |
assertProblemsSize(unit, 1, "The type A is not generic; it cannot be parameterized with arguments <?>"); |
9100 |
} |
9079 |
} |
9101 |
} |