Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorOlivier Thomann2012-11-08 15:46:18 +0000
committerStephan Herrmann2012-11-15 17:02:21 +0000
commit90cdf8e8c0e2fd8fdbe1d92522367a844c42ef50 (patch)
tree44bd66f5ddebcf4067191588bcc4e41274190b70 /org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
parent0e848ce6faa7bc946c12c0941ef03306723579c9 (diff)
downloadeclipse.jdt.core-90cdf8e8c0e2fd8fdbe1d92522367a844c42ef50.tar.gz
eclipse.jdt.core-90cdf8e8c0e2fd8fdbe1d92522367a844c42ef50.tar.xz
eclipse.jdt.core-90cdf8e8c0e2fd8fdbe1d92522367a844c42ef50.zip
Fix for bug 372076 - ASTParser.createASTs fails after parsing files with
Javadoc comments on enum definitions.
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java')
-rw-r--r--org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java2
1 files changed, 2 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
index 86ea73e09e..16e21bbce3 100644
--- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
+++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
@@ -9582,6 +9582,7 @@ protected CompilationUnitDeclaration endParse(int act) {
this.scanner.foundTaskPositions[i][0],
this.scanner.foundTaskPositions[i][1]);
}
+ this.javadoc = null;
return this.compilationUnit;
}
/*
@@ -10201,6 +10202,7 @@ public void initialize() {
public void initialize(boolean initializeNLS) {
//positioning the parser for a new compilation unit
//avoiding stack reallocation and all that....
+ this.javadoc = null;
this.astPtr = -1;
this.astLengthPtr = -1;
this.expressionPtr = -1;

Back to the top