diff options
Diffstat (limited to 'org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ArrayBinding.java')
-rw-r--r-- | org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ArrayBinding.java | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ArrayBinding.java b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ArrayBinding.java index 16b38541b..22c138a29 100644 --- a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ArrayBinding.java +++ b/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/lookup/ArrayBinding.java @@ -8,6 +8,8 @@ * Contributors: * IBM Corporation - initial API and implementation * Technical University Berlin - extended API and implementation + * Stephan Herrmann - Contribution for + * bug 395002 - Self bound generic class doesn't resolve bounds properly for wildcards for certain parametrisation. *******************************************************************************/ package org.eclipse.jdt.internal.compiler.lookup; @@ -166,7 +168,7 @@ public int hashCode() { /* Answer true if the receiver type can be assigned to the argument type (right) */ -public boolean isCompatibleWith(TypeBinding otherType) { +public boolean isCompatibleWith(TypeBinding otherType, Scope captureScope) { if (this == otherType) return true; @@ -193,7 +195,7 @@ public boolean isCompatibleWith(TypeBinding otherType) { TypeBinding otherLowerBound; if ((otherLowerBound = otherCapture.lowerBound) != null) { if (!otherLowerBound.isArrayType()) return false; - return isCompatibleWith(otherLowerBound); + return isCompatibleWith(otherLowerBound, captureScope); } } return false; |