Skip to main content
aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJay Arthanareeswaran2018-03-29 15:49:40 +0000
committerJay Arthanareeswaran2018-03-30 09:58:08 +0000
commitb5c7be49ecbeed2ae161eda9236e85243afc8e57 (patch)
tree25b9d1511338852e294e8a81b638bf7392bed06a /org.eclipse.jdt.core/codeassist
parentb3ffc7b2e1858f4bb3da82c4ef2c1ab76464d7a8 (diff)
downloadeclipse.jdt.core-b5c7be49ecbeed2ae161eda9236e85243afc8e57.tar.gz
eclipse.jdt.core-b5c7be49ecbeed2ae161eda9236e85243afc8e57.tar.xz
eclipse.jdt.core-b5c7be49ecbeed2ae161eda9236e85243afc8e57.zip
Bug 531046 - Fix the UnsupportedOperationException
Change-Id: Icacd9d90d8ce7c1b1dc9cbeed3d35afc7b192402 Signed-off-by: Jay Arthanareeswaran <jarthana@in.ibm.com>
Diffstat (limited to 'org.eclipse.jdt.core/codeassist')
-rw-r--r--org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java7
1 files changed, 7 insertions, 0 deletions
diff --git a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
index 85aab61d1e..d7be942580 100644
--- a/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
+++ b/org.eclipse.jdt.core/codeassist/org/eclipse/jdt/internal/codeassist/SelectionEngine.java
@@ -78,6 +78,7 @@ import org.eclipse.jdt.internal.compiler.lookup.BlockScope;
import org.eclipse.jdt.internal.compiler.lookup.ClassScope;
import org.eclipse.jdt.internal.compiler.lookup.CompilationUnitScope;
import org.eclipse.jdt.internal.compiler.lookup.FieldBinding;
+import org.eclipse.jdt.internal.compiler.lookup.IntersectionTypeBinding18;
import org.eclipse.jdt.internal.compiler.lookup.LocalTypeBinding;
import org.eclipse.jdt.internal.compiler.lookup.LocalVariableBinding;
import org.eclipse.jdt.internal.compiler.lookup.LookupEnvironment;
@@ -1247,6 +1248,12 @@ public final class SelectionEngine extends Engine implements ISearchRequestor {
if (isLocal(typeBinding) && this.requestor instanceof SelectionRequestor) {
this.noProposal = false;
((SelectionRequestor)this.requestor).acceptLocalType(typeBinding);
+ } else if (binding instanceof IntersectionTypeBinding18) {
+ IntersectionTypeBinding18 intersection = (IntersectionTypeBinding18) binding;
+ ReferenceBinding[] intersectingTypes = intersection.intersectingTypes;
+ for (ReferenceBinding referenceBinding : intersectingTypes) {
+ selectFrom(referenceBinding, parsedUnit, isDeclaration);
+ }
} else {
this.noProposal = false;

Back to the top