diff options
author | Srikanth Sankaran | 2014-01-30 08:25:34 +0000 |
---|---|---|
committer | Jayaprakash Arthanareeswaran | 2014-01-30 08:25:34 +0000 |
commit | 673c0ef3c8529bb5f21f9c2d4f6ecb473d4a323c (patch) | |
tree | 0b2e3c78f7ae2accf6bfd39d9a378abed0a67bc4 /org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/parser/Parser.java | |
parent | 1aadc77c6b3d7d382df639073b5613474ebabb3e (diff) | |
download | eclipse.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.java | 2 |
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--]; |