Lines 42-48
Link Here
|
42 |
// All specified tests which do not belong to the class are skipped... |
42 |
// All specified tests which do not belong to the class are skipped... |
43 |
static { |
43 |
static { |
44 |
// TESTS_PREFIX = "testBug86380"; |
44 |
// TESTS_PREFIX = "testBug86380"; |
45 |
// TESTS_NAMES = new String[] { "testBinaryMemberTypeConstructor" }; |
45 |
// TESTS_NAMES = new String[] { "testCreateBindings19" }; |
46 |
// TESTS_NUMBERS = new int[] { 83230 }; |
46 |
// TESTS_NUMBERS = new int[] { 83230 }; |
47 |
// TESTS_RANGE = new int[] { 83304, -1 }; |
47 |
// TESTS_RANGE = new int[] { 83304, -1 }; |
48 |
} |
48 |
} |
Lines 1437-1441
Link Here
|
1437 |
); |
1437 |
); |
1438 |
} |
1438 |
} |
1439 |
|
1439 |
|
1440 |
|
1440 |
/* |
|
|
1441 |
* https://bugs.eclipse.org/bugs/show_bug.cgi?id=160637 |
1442 |
*/ |
1443 |
public void testCreateBindings19() throws CoreException { |
1444 |
IBinding[] bindings = createBinaryBindings( |
1445 |
"public class A {\n" + |
1446 |
" String foo(String s) {\n" + |
1447 |
" return null;\n" + |
1448 |
" }\n" + |
1449 |
"}", |
1450 |
getClassFile("/P/lib/A.class").getType().getMethod("foo", new String[] {"Ljava.lang.String;"}) |
1451 |
); |
1452 |
assertNotNull("No bindings", bindings); |
1453 |
assertEquals("Wrong size", 1, bindings.length); |
1454 |
assertTrue("Not a method binding", bindings[0] instanceof IMethodBinding); |
1455 |
assertBindingsEqual( |
1456 |
"LA;.foo(Ljava/lang/String;)Ljava/lang/String;", |
1457 |
bindings); |
1458 |
} |
1441 |
} |
1459 |
} |