Lines 1458-1461
Link Here
|
1458 |
"LA;.foo(Ljava/lang/String;)Ljava/lang/String;", |
1458 |
"LA;.foo(Ljava/lang/String;)Ljava/lang/String;", |
1459 |
bindings); |
1459 |
bindings); |
1460 |
} |
1460 |
} |
|
|
1461 |
|
1462 |
/* |
1463 |
* Ensures that the correct IBinding is created for an IField starting with a 'L' |
1464 |
* (regression test for 205860 ASTParser.createBindings() returns [null]) |
1465 |
*/ |
1466 |
public void testCreateBindings20() throws JavaModelException { |
1467 |
IClassFile classFile = getClassFile("P", getExternalJCLPathString("1.5"), "javax.swing", "BoxLayout.class"); |
1468 |
IField field = classFile.getType().getField("LINE_AXIS"); |
1469 |
ASTParser p = ASTParser.newParser(AST.JLS3); |
1470 |
p.setProject(field.getJavaProject()); |
1471 |
IBinding[] bindings = p.createBindings(new IJavaElement[]{field}, null); |
1472 |
assertBindingsEqual( |
1473 |
"Ljavax/swing/BoxLayout;.LINE_AXIS)I", |
1474 |
bindings); |
1475 |
} |
1476 |
|
1477 |
/* |
1478 |
* Ensures that the correct IBinding is created for an IField starting with a 'T' |
1479 |
* (regression test for 205860 ASTParser.createBindings() returns [null]) |
1480 |
*/ |
1481 |
public void testCreateBindings21() throws JavaModelException { |
1482 |
IClassFile classFile = getClassFile("P", getExternalJCLPathString("1.5"), "java.util", "Calendar.class"); |
1483 |
IField field = classFile.getType().getField("THURSDAY"); |
1484 |
ASTParser p = ASTParser.newParser(AST.JLS3); |
1485 |
p.setProject(field.getJavaProject()); |
1486 |
IBinding[] bindings = p.createBindings(new IJavaElement[]{field}, null); |
1487 |
assertBindingsEqual( |
1488 |
"Ljava/util/Calendar;.THURSDAY)I", |
1489 |
bindings); |
1490 |
} |
1461 |
} |
1491 |
} |