Lines 46-52
Link Here
|
46 |
} |
46 |
} |
47 |
|
47 |
|
48 |
static { |
48 |
static { |
49 |
// TESTS_NUMBERS = new int[] { 108 }; |
49 |
// TESTS_NUMBERS = new int[] { 217 }; |
50 |
// TESTS_NAMES = new String[] {"test0204"}; |
50 |
// TESTS_NAMES = new String[] {"test0204"}; |
51 |
} |
51 |
} |
52 |
public static Test suite() { |
52 |
public static Test suite() { |
Lines 6789-6792
Link Here
|
6789 |
|
6789 |
|
6790 |
assertTrue("Method bindings are not identical", methodBinding == methodBinding2); |
6790 |
assertTrue("Method bindings are not identical", methodBinding == methodBinding2); |
6791 |
} |
6791 |
} |
|
|
6792 |
|
6793 |
/* |
6794 |
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=110799 |
6795 |
*/ |
6796 |
public void test0217() throws JavaModelException { |
6797 |
this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); |
6798 |
String contents = |
6799 |
"class Generic<E> {\n" + |
6800 |
"}\n" + |
6801 |
"public class X {\n" + |
6802 |
" Generic raw;\n" + |
6803 |
" java.util.Collection rawCollection;\n" + |
6804 |
"}"; |
6805 |
ASTNode node = buildAST( |
6806 |
contents, |
6807 |
this.workingCopy, |
6808 |
false); |
6809 |
assertEquals("Not a compilation unit", ASTNode.COMPILATION_UNIT, node.getNodeType()); |
6810 |
CompilationUnit unit = (CompilationUnit) node; |
6811 |
assertProblemsSize(unit, 0); |
6812 |
node = getASTNode(unit, 1, 0); |
6813 |
assertEquals("Not a field declaration", ASTNode.FIELD_DECLARATION, node.getNodeType()); |
6814 |
FieldDeclaration fieldDeclaration = (FieldDeclaration) node; |
6815 |
Type type = fieldDeclaration.getType(); |
6816 |
ITypeBinding typeBinding = type.resolveBinding(); |
6817 |
assertTrue("isRaw", typeBinding.isRawType()); |
6818 |
|
6819 |
node = getASTNode(unit, 1, 1); |
6820 |
assertEquals("Not a field declaration", ASTNode.FIELD_DECLARATION, node.getNodeType()); |
6821 |
fieldDeclaration = (FieldDeclaration) node; |
6822 |
type = fieldDeclaration.getType(); |
6823 |
ITypeBinding typeBinding2 = type.resolveBinding(); |
6824 |
assertTrue("isRaw", typeBinding2.isRawType()); |
6825 |
|
6826 |
ITypeBinding[] typeParameters = typeBinding.getTypeParameters(); |
6827 |
assertEquals("Wrong size", 0, typeParameters.length); |
6828 |
|
6829 |
ITypeBinding[] typeArguments = typeBinding.getTypeArguments(); |
6830 |
assertEquals("Wrong size", 0, typeArguments.length); |
6831 |
|
6832 |
typeParameters = typeBinding2.getTypeParameters(); |
6833 |
assertEquals("Wrong size", 0, typeParameters.length); |
6834 |
|
6835 |
typeArguments = typeBinding2.getTypeArguments(); |
6836 |
assertEquals("Wrong size", 0, typeArguments.length); |
6837 |
} |
6792 |
} |
6838 |
} |