Index: src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java,v retrieving revision 1.161 diff -u -r1.161 ASTConverter15Test.java --- src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 3 Jun 2005 16:58:46 -0000 1.161 +++ src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java 6 Jun 2005 18:03:01 -0000 @@ -37,7 +37,7 @@ } static { -// TESTS_NUMBERS = new int[] { 185, 186 }; +// TESTS_NUMBERS = new int[] { 188 }; // TESTS_NAMES = new String[] {"test0187"}; } public static Test suite() { @@ -5594,5 +5594,30 @@ "LX~Y;", type.resolveBinding()); } + + /* + * https://bugs.eclipse.org/bugs/show_bug.cgi?id=98473 + */ + public void test0188() throws JavaModelException { + this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/); + final String contents = + "import java.util.List;\n" + + "\n" + + "public class X {\n" + + " class Counter/*end*/> {\n" + + " private L _attribute;\n" + + " }\n" + + "}"; + ASTNode node = buildAST( + contents, + this.workingCopy); + assertEquals("Not a type parameter", ASTNode.TYPE_PARAMETER, node.getNodeType()); + ITypeBinding typeBinding = ((TypeParameter) node).resolveBinding(); + assertNotNull("No binding", typeBinding); + assertFalse("Cannot be top level", typeBinding.isTopLevel()); + assertFalse("A class", typeBinding.isClass()); + assertFalse("An interface", typeBinding.isInterface()); + assertTrue("Not a type variable", typeBinding.isTypeVariable()); + } } \ No newline at end of file