Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSrikanth Sankaran2014-01-30 08:25:34 +0000
committerJayaprakash Arthanareeswaran2014-01-30 08:25:34 +0000
commit673c0ef3c8529bb5f21f9c2d4f6ecb473d4a323c (patch)
tree0b2e3c78f7ae2accf6bfd39d9a378abed0a67bc4 /org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java
parent1aadc77c6b3d7d382df639073b5613474ebabb3e (diff)
downloadeclipse.jdt.core-673c0ef3c8529bb5f21f9c2d4f6ecb473d4a323c.tar.gz
eclipse.jdt.core-673c0ef3c8529bb5f21f9c2d4f6ecb473d4a323c.tar.xz
eclipse.jdt.core-673c0ef3c8529bb5f21f9c2d4f6ecb473d4a323c.zip
Bug 426515 - [1.8][dom ast] Bindings from reconciler are sometimes
missing type annotations Signed-off-by: srikanth_sankaran@in.ibm.com
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 a34f0370f0..91df543d6d 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
@@ -4994,6 +4994,7 @@ protected void consumeMethodHeaderExtendedDims() {
if (extendedDimensions != 0) {
md.sourceEnd = this.endPosition;
md.returnType = augmentTypeWithAdditionalDimensions(md.returnType, extendedDimensions, getAnnotationsOnDimensions(extendedDimensions), false);
+ md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
if (this.currentToken == TokenNameLBRACE){
md.bodyStart = this.endPosition + 1;
}
@@ -5021,6 +5022,7 @@ protected void consumeMethodHeaderName(boolean isAnnotationMethod) {
this.identifierLengthPtr--;
//type
md.returnType = getTypeReference(this.intStack[this.intPtr--]);
+ md.bits |= (md.returnType.bits & ASTNode.HasTypeAnnotations);
//modifiers
md.declarationSourceStart = this.intStack[this.intPtr--];
md.modifiers = this.intStack[this.intPtr--];

Back to the top