Lines 37-43
Link Here
|
37 |
} |
37 |
} |
38 |
|
38 |
|
39 |
static { |
39 |
static { |
40 |
// TESTS_NUMBERS = new int[] { 185, 186 }; |
40 |
// TESTS_NUMBERS = new int[] { 188 }; |
41 |
// TESTS_NAMES = new String[] {"test0187"}; |
41 |
// TESTS_NAMES = new String[] {"test0187"}; |
42 |
} |
42 |
} |
43 |
public static Test suite() { |
43 |
public static Test suite() { |
Lines 5594-5598
Link Here
|
5594 |
"LX~Y<LX;:1TT;>;", |
5594 |
"LX~Y<LX;:1TT;>;", |
5595 |
type.resolveBinding()); |
5595 |
type.resolveBinding()); |
5596 |
} |
5596 |
} |
|
|
5597 |
|
5598 |
/* |
5599 |
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=98473 |
5600 |
*/ |
5601 |
public void test0188() throws JavaModelException { |
5602 |
this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); |
5603 |
final String contents = |
5604 |
"import java.util.List;\n" + |
5605 |
"\n" + |
5606 |
"public class X {\n" + |
5607 |
" class Counter<T, /*start*/L extends List<T>/*end*/> {\n" + |
5608 |
" private L _attribute;\n" + |
5609 |
" }\n" + |
5610 |
"}"; |
5611 |
ASTNode node = buildAST( |
5612 |
contents, |
5613 |
this.workingCopy); |
5614 |
assertEquals("Not a type parameter", ASTNode.TYPE_PARAMETER, node.getNodeType()); |
5615 |
ITypeBinding typeBinding = ((TypeParameter) node).resolveBinding(); |
5616 |
assertNotNull("No binding", typeBinding); |
5617 |
assertFalse("Cannot be top level", typeBinding.isTopLevel()); |
5618 |
assertFalse("A class", typeBinding.isClass()); |
5619 |
assertFalse("An interface", typeBinding.isInterface()); |
5620 |
assertTrue("Not a type variable", typeBinding.isTypeVariable()); |
5621 |
} |
5597 |
|
5622 |
|
5598 |
} |
5623 |
} |