Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 387576
Collapse All | Expand All

(-)a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java (+19 lines)
Lines 11452-11456 public class ASTConverter15Test extends ConverterTestSetup { Link Here
11452
			deleteProject(jp);
11452
			deleteProject(jp);
11453
		}
11453
		}
11454
	}
11454
	}
11455
	public void testBug387576() throws JavaModelException {
11456
		this.workingCopy = getWorkingCopy("/Converter15/src/X.java", true/*resolve*/);
11457
		CompilationUnit unit = (CompilationUnit) buildAST(
11458
			"public class X {\n" +
11459
			"	public static <A$> void p(A$ a) {}\n" +
11460
			"}",
11461
			this.workingCopy,
11462
			true,
11463
			true,
11464
			true);
11465
		BodyDeclaration bodyDeclaration = (BodyDeclaration) getASTNode(unit, 0, 0);
11466
		assertTrue(bodyDeclaration instanceof MethodDeclaration);
11467
		MethodDeclaration methodDeclaration = (MethodDeclaration) bodyDeclaration;
11468
		IMethodBinding binding = methodDeclaration.resolveBinding();
11469
11470
		IJavaElement javaElement = binding.getJavaElement();
11471
11472
		assertNotNull(javaElement);
11473
	}
11455
11474
11456
}
11475
}

Return to bug 387576