View | Details | Raw Unified | Return to bug 361938
Collapse All | Expand All

(-)a/org.eclipse.jdt.core.tests.model/src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java (+19 lines)
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
}
(-)a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/TryStatement.java (-1 / +1 lines)
Lines 352-358 Link Here
352
	 */
352
	 */
353
	public List resources() {
353
	public List resources() {
354
		// more efficient than just calling unsupportedIn2_3() to check
354
		// more efficient than just calling unsupportedIn2_3() to check
355
		if (this.resources == null) {
355
		if (this.resources != null) {
356
			unsupportedIn2_3();
356
			unsupportedIn2_3();
357
		}
357
		}
358
		return this.resources;
358
		return this.resources;

Return to bug 361938