Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2020-08-12 04:43:29 +0000
committerJay Arthanareeswaran2020-08-12 04:43:29 +0000
commit582b99fc133bf07e2dc720a11f38d6333b0d7189 (patch)
tree69dbbfaefd6087b871d64f5e88a6425ac2591ee2
parent3b92629ad51a4bba5b31518b221948cf7ca719e8 (diff)
downloadeclipse.jdt.core-582b99fc133bf07e2dc720a11f38d6333b0d7189.tar.gz
eclipse.jdt.core-582b99fc133bf07e2dc720a11f38d6333b0d7189.tar.xz
eclipse.jdt.core-582b99fc133bf07e2dc720a11f38d6333b0d7189.zip
Bug 565999 - [15] Any Completion inside a record throws a CCEP20200812-0410
Change-Id: I7f05ae6f294df43bab346b2d660c2ec2f7e2026e Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
-rw-r--r--org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionUnitStructureRequestor.java3
1 files changed, 1 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionUnitStructureRequestor.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionUnitStructureRequestor.java
index ff49a3e715..0db23c7f4f 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionUnitStructureRequestor.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/CompletionUnitStructureRequestor.java
@@ -41,7 +41,6 @@ import org.eclipse.jdt.internal.compiler.ast.FieldDeclaration;
import org.eclipse.jdt.internal.compiler.ast.MemberValuePair;
import org.eclipse.jdt.internal.compiler.ast.ParameterizedQualifiedTypeReference;
import org.eclipse.jdt.internal.compiler.ast.ParameterizedSingleTypeReference;
-import org.eclipse.jdt.internal.compiler.ast.RecordComponent;
import org.eclipse.jdt.internal.compiler.ast.TypeReference;
import org.eclipse.jdt.internal.compiler.parser.Parser;
import org.eclipse.jdt.internal.core.AnnotatableInfo;
@@ -112,7 +111,7 @@ public class CompletionUnitStructureRequestor extends CompilationUnitStructureRe
return true;
}
};
- RecordComponent decl = (RecordComponent) (compInfo.node);
+ FieldDeclaration decl = (FieldDeclaration) (compInfo.node);
if (decl.binding != null) {
this.bindingCache.put(compName, decl.binding);
this.elementCache.put(decl.binding, compName);

Back to the top