Lines 47-53
Link Here
|
47 |
} |
47 |
} |
48 |
|
48 |
|
49 |
static { |
49 |
static { |
50 |
// TESTS_NUMBERS = new int[] { 228 }; |
50 |
TESTS_NUMBERS = new int[] { 229 }; |
51 |
// TESTS_NAMES = new String[] {"test0204"}; |
51 |
// TESTS_NAMES = new String[] {"test0204"}; |
52 |
} |
52 |
} |
53 |
public static Test suite() { |
53 |
public static Test suite() { |
Lines 7261-7264
Link Here
|
7261 |
binding = pair.resolveMemberValuePairBinding(); |
7261 |
binding = pair.resolveMemberValuePairBinding(); |
7262 |
assertNotNull("No binding", binding); |
7262 |
assertNotNull("No binding", binding); |
7263 |
} |
7263 |
} |
|
|
7264 |
/* |
7265 |
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=120082 |
7266 |
*/ |
7267 |
public void test0229() throws JavaModelException { |
7268 |
this.workingCopy = getWorkingCopy("/Converter15/src/pack1/E.java", true/*resolve*/); |
7269 |
String contents = |
7270 |
"package pack1;\n" + |
7271 |
"public class E<X> {\n" + |
7272 |
" public static <T> E<T> bar(T t) {\n" + |
7273 |
" return null;\n" + |
7274 |
" }\n" + |
7275 |
"\n" + |
7276 |
" public void foo(E<?> e) {\n" + |
7277 |
" bar(e);\n" + |
7278 |
" }\n" + |
7279 |
"}"; |
7280 |
ASTNode node = buildAST( |
7281 |
contents, |
7282 |
this.workingCopy, |
7283 |
false); |
7284 |
assertEquals("Not a compilation unit", ASTNode.COMPILATION_UNIT, node.getNodeType()); |
7285 |
CompilationUnit unit = (CompilationUnit) node; |
7286 |
ASTNode node2 = getASTNode(unit, 0, 1, 0); |
7287 |
assertEquals("Not an expression statement", ASTNode.EXPRESSION_STATEMENT, node2.getNodeType()); |
7288 |
Expression expression = ((ExpressionStatement) node2).getExpression(); |
7289 |
assertEquals("Not a method invocation", ASTNode.METHOD_INVOCATION, expression.getNodeType()); |
7290 |
MethodInvocation methodInvocation = (MethodInvocation) expression; |
7291 |
ITypeBinding typeBinding = methodInvocation.resolveTypeBinding(); |
7292 |
String signature= new BindingKey(typeBinding.getKey()).toSignature(); |
7293 |
System.out.println(signature); |
7294 |
} |
7264 |
} |
7295 |
} |