Download
Getting Started
Members
Projects
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
More
Community
Marketplace
Events
Planet Eclipse
Newsletter
Videos
Participate
Report a Bug
Forums
Mailing Lists
Wiki
IRC
How to Contribute
Working Groups
Automotive
Internet of Things
LocationTech
Long-Term Support
PolarSys
Science
OpenMDM
Toggle navigation
Bugzilla – Attachment 249597 Details for
Bug 455986
ASTParser ignores call to super() in K_STATEMENTS mode
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
Terms of Use
|
Copyright Agent
Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read
this important communication.
[patch]
Proposed patch
patch_455986.txt (text/plain), 1.45 KB, created by
Olivier Thomann
on 2014-12-22 14:00:43 EST
(
hide
)
Description:
Proposed patch
Filename:
MIME Type:
Creator:
Olivier Thomann
Created:
2014-12-22 14:00:43 EST
Size:
1.45 KB
patch
obsolete
>diff --git a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java >index cf75c8a..6a382cd 100644 >--- a/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java >+++ b/org.eclipse.jdt.core/dom/org/eclipse/jdt/core/dom/ASTParser.java >@@ -30,6 +30,7 @@ > import org.eclipse.jdt.core.compiler.CharOperation; > import org.eclipse.jdt.internal.compiler.ast.CompilationUnitDeclaration; > import org.eclipse.jdt.internal.compiler.ast.ConstructorDeclaration; >+import org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall; > import org.eclipse.jdt.internal.compiler.batch.Main; > import org.eclipse.jdt.internal.compiler.env.IBinaryType; > import org.eclipse.jdt.internal.compiler.parser.RecoveryScanner; >@@ -1343,6 +1344,10 @@ > compilationUnit.setLineEndTable(recordedParsingInformation.lineEnds); > Block block = ast.newBlock(); > block.setSourceRange(this.sourceOffset, this.sourceOffset + this.sourceLength); >+ ExplicitConstructorCall constructorCall = constructorDeclaration.constructorCall; >+ if (constructorCall != null && constructorCall.accessMode != org.eclipse.jdt.internal.compiler.ast.ExplicitConstructorCall.ImplicitSuper) { >+ block.statements().add(converter.convert(constructorCall)); >+ } > org.eclipse.jdt.internal.compiler.ast.Statement[] statements = constructorDeclaration.statements; > if (statements != null) { > int statementsLength = statements.length;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 455986
: 249597 |
249598