Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 455986 | Differences between
and this patch

Collapse All | Expand All

(-)a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java (+5 lines)
Lines 30-35 Link Here
30
import org.eclipse.jdt.core.compiler.CharOperation;
30
import org.eclipse.jdt.core.compiler.CharOperation;
31
import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration;
31
import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration;
32
import org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration;
32
import org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration;
33
import org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall;
33
import org.eclipse.jdt.internal.compiler.batch.Main;
34
import org.eclipse.jdt.internal.compiler.batch.Main;
34
import org.eclipse.jdt.internal.compiler.env.IBinaryType;
35
import org.eclipse.jdt.internal.compiler.env.IBinaryType;
35
import org.eclipse.jdt.internal.compiler.parser.RecoveryScanner;
36
import org.eclipse.jdt.internal.compiler.parser.RecoveryScanner;
Lines 1343-1348 Link Here
1343
				compilationUnit.setLineEndTable(recordedParsingInformation.lineEnds);
1344
				compilationUnit.setLineEndTable(recordedParsingInformation.lineEnds);
1344
				Block block = ast.newBlock();
1345
				Block block = ast.newBlock();
1345
				block.setSourceRange(this.sourceOffset, this.sourceOffset + this.sourceLength);
1346
				block.setSourceRange(this.sourceOffset, this.sourceOffset + this.sourceLength);
1347
				ExplicitConstructorCall constructorCall = constructorDeclaration.constructorCall;
1348
				if (constructorCall != null && constructorCall.accessMode != org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall.ImplicitSuper) {
1349
					block.statements().add(converter.convert(constructorCall));
1350
				}
1346
				org.eclipse.jdt.internal.compiler.ast.Statement[] statements = constructorDeclaration.statements;
1351
				org.eclipse.jdt.internal.compiler.ast.Statement[] statements = constructorDeclaration.statements;
1347
				if (statements != null) {
1352
				if (statements != null) {
1348
					int statementsLength = statements.length;
1353
					int statementsLength = statements.length;

Return to bug 455986