Lines 10613-10616
Link Here
|
10613 |
assertEquals("wrong tag name", "@literal", element.getTagName()); |
10613 |
assertEquals("wrong tag name", "@literal", element.getTagName()); |
10614 |
checkSourceRange((TextElement) element.fragments().get(0), " stars**** ", source); |
10614 |
checkSourceRange((TextElement) element.fragments().get(0), " stars**** ", source); |
10615 |
} |
10615 |
} |
|
|
10616 |
// https://bugs.eclipse.org/bugs/show_bug.cgi?id=361938 |
10617 |
public void test0722() throws JavaModelException { |
10618 |
String source = "public class X {\n" + |
10619 |
" X(){\n" + |
10620 |
" try {\n" + |
10621 |
" }\n" + |
10622 |
" finally {\n" + |
10623 |
" }\n" + |
10624 |
" }\n" + |
10625 |
"}\n"; |
10626 |
|
10627 |
ASTParser parser = ASTParser.newParser(AST.JLS3); |
10628 |
parser.setKind(ASTParser.K_COMPILATION_UNIT); |
10629 |
parser.setSource(source.toCharArray()); |
10630 |
CompilationUnit resultCompilationUnit = (CompilationUnit) parser.createAST(null); |
10631 |
Object o = resultCompilationUnit.types().get(0); |
10632 |
System.out.println(o.toString()); |
10633 |
assertEquals(o.toString(), source); |
10634 |
} |
10616 |
} |
10635 |
} |