Lines 47-53
Link Here
|
47 |
} |
47 |
} |
48 |
|
48 |
|
49 |
static { |
49 |
static { |
50 |
// TESTS_NUMBERS = new int[] { 350 }; |
50 |
// TESTS_NUMBERS = new int[] { 351, 352 }; |
51 |
// TESTS_RANGE = new int[] { 325, -1 }; |
51 |
// TESTS_RANGE = new int[] { 325, -1 }; |
52 |
// TESTS_NAMES = new String[] {"test0204"}; |
52 |
// TESTS_NAMES = new String[] {"test0204"}; |
53 |
} |
53 |
} |
Lines 11284-11287
Link Here
|
11284 |
assertTrue("Should be seen as a wildcard (really an intersection type)", binding.isWildcardType()); |
11284 |
assertTrue("Should be seen as a wildcard (really an intersection type)", binding.isWildcardType()); |
11285 |
assertNull("should be null", binding.getGenericTypeOfWildcardType()); |
11285 |
assertNull("should be null", binding.getGenericTypeOfWildcardType()); |
11286 |
} |
11286 |
} |
|
|
11287 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=342671 |
11288 |
public void test0351() throws JavaModelException { |
11289 |
ICompilationUnit sourceUnit = getCompilationUnit("Converter15" , "src", "test0351", "X.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ |
11290 |
ASTNode result = runJLS3Conversion(sourceUnit, true, true); |
11291 |
assertTrue("Not a compilation unit", result.getNodeType() == ASTNode.COMPILATION_UNIT); |
11292 |
CompilationUnit unit = (CompilationUnit) result; |
11293 |
MethodDeclaration methodDeclaration = (MethodDeclaration) getASTNode(unit, 0, 0); |
11294 |
ITypeBinding typeBinding = methodDeclaration.getReturnType2().resolveBinding(); |
11295 |
assertEquals("Wrong fully qualified name", "test0351.I1[]", typeBinding.getQualifiedName()); |
11296 |
} |
11297 |
//https://bugs.eclipse.org/bugs/show_bug.cgi?id=342671 |
11298 |
public void test0352() throws JavaModelException { |
11299 |
ICompilationUnit sourceUnit = getCompilationUnit("Converter15" , "src", "test0352", "X.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$ |
11300 |
ASTNode result = runJLS3Conversion(sourceUnit, true, true); |
11301 |
assertTrue("Not a compilation unit", result.getNodeType() == ASTNode.COMPILATION_UNIT); |
11302 |
CompilationUnit unit = (CompilationUnit) result; |
11303 |
MethodDeclaration methodDeclaration = (MethodDeclaration) getASTNode(unit, 0, 0); |
11304 |
ITypeBinding typeBinding = methodDeclaration.getReturnType2().resolveBinding(); |
11305 |
assertEquals("Wrong fully qualified name", "test0352.I1[]", typeBinding.getQualifiedName()); |
11306 |
} |
11287 |
} |
11307 |
} |