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

(-)compiler/org/eclipse/jdt/internal/compiler/parser/RecoveredType.java (-1 / +7 lines)
Lines 16-21 Link Here
16
import org.eclipse.jdt.internal.compiler.ast.Block;
16
import org.eclipse.jdt.internal.compiler.ast.Block;
17
import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration;
17
import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration;
18
import org.eclipse.jdt.internal.compiler.ast.Initializer;
18
import org.eclipse.jdt.internal.compiler.ast.Initializer;
19
import org.eclipse.jdt.internal.compiler.ast.QualifiedAllocationExpression;
19
import org.eclipse.jdt.internal.compiler.ast.Statement;
20
import org.eclipse.jdt.internal.compiler.ast.Statement;
20
import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration;
21
import org.eclipse.jdt.internal.compiler.ast.TypeDeclaration;
21
import org.eclipse.jdt.internal.compiler.ast.TypeParameter;
22
import org.eclipse.jdt.internal.compiler.ast.TypeParameter;
Lines 308-314 Link Here
308
	TypeDeclaration updatedType = this.updatedTypeDeclaration();
309
	TypeDeclaration updatedType = this.updatedTypeDeclaration();
309
	if ((updatedType.bits & ASTNode.IsAnonymousType) != 0){
310
	if ((updatedType.bits & ASTNode.IsAnonymousType) != 0){
310
		/* in presence of an anonymous type, we want the full allocation expression */
311
		/* in presence of an anonymous type, we want the full allocation expression */
311
		return updatedType.allocation;
312
		QualifiedAllocationExpression allocation = updatedType.allocation;
313
		
314
		if (allocation.statementEnd == -1) {
315
			allocation.statementEnd = updatedType.declarationSourceEnd;
316
		}
317
		return allocation;
312
	}
318
	}
313
	return updatedType;
319
	return updatedType;
314
}
320
}
(-)src/org/eclipse/jdt/core/tests/dom/ASTConverterTestAST3_2.java (-1 / +1 lines)
Lines 8786-8792 Link Here
8786
	/**
8786
	/**
8787
	 * http://dev.eclipse.org/bugs/show_bug.cgi?id=176057
8787
	 * http://dev.eclipse.org/bugs/show_bug.cgi?id=176057
8788
	 */
8788
	 */
8789
	public void _test0669() throws JavaModelException {
8789
	public void test0669() throws JavaModelException {
8790
		ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "test0669", "UIPerformChangeOperation.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
8790
		ICompilationUnit sourceUnit = getCompilationUnit("Converter" , "src", "test0669", "UIPerformChangeOperation.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
8791
		ASTNode result = runConversion(AST.JLS3, sourceUnit, true, true);
8791
		ASTNode result = runConversion(AST.JLS3, sourceUnit, true, true);
8792
		assertNotNull(result);
8792
		assertNotNull(result);
(-)src/org/eclipse/jdt/core/tests/dom/ASTConverter15Test.java (-1 / +1 lines)
Lines 7870-7876 Link Here
7870
	/*
7870
	/*
7871
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=156352
7871
	 * https://bugs.eclipse.org/bugs/show_bug.cgi?id=156352
7872
	 */
7872
	 */
7873
	public void _test0247() throws JavaModelException {
7873
	public void test0247() throws JavaModelException {
7874
		ICompilationUnit sourceUnit = getCompilationUnit("Converter15" , "src", "test0247", "EclipseCompiler.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
7874
		ICompilationUnit sourceUnit = getCompilationUnit("Converter15" , "src", "test0247", "EclipseCompiler.java"); //$NON-NLS-1$ //$NON-NLS-2$ //$NON-NLS-3$ //$NON-NLS-4$
7875
		ASTNode result = runConversion(AST.JLS3, sourceUnit, true, true);
7875
		ASTNode result = runConversion(AST.JLS3, sourceUnit, true, true);
7876
		assertNotNull("Not a compilation unit", result);
7876
		assertNotNull("Not a compilation unit", result);

Return to bug 176057