|
Lines 176-182
Link Here
|
| 176 |
this.enclosingScope = blockScope; |
176 |
this.enclosingScope = blockScope; |
| 177 |
|
177 |
|
| 178 |
if (this.expectedType == null && this.expressionContext == INVOCATION_CONTEXT) { |
178 |
if (this.expectedType == null && this.expressionContext == INVOCATION_CONTEXT) { |
| 179 |
return this.resolvedType = new PolyTypeBinding(this); |
179 |
return new PolyTypeBinding(this); |
| 180 |
} |
180 |
} |
| 181 |
|
181 |
|
| 182 |
MethodScope methodScope = blockScope.methodScope(); |
182 |
MethodScope methodScope = blockScope.methodScope(); |
|
Lines 958-963
Link Here
|
| 958 |
// Return the actual method binding devoid of synthetics. |
958 |
// Return the actual method binding devoid of synthetics. |
| 959 |
public MethodBinding getMethodBinding() { |
959 |
public MethodBinding getMethodBinding() { |
| 960 |
if (this.actualMethodBinding == null) { |
960 |
if (this.actualMethodBinding == null) { |
|
|
961 |
if (this.binding == null) { |
| 962 |
this.resolveType((BlockScope)this.scope.parent); |
| 963 |
} |
| 961 |
this.actualMethodBinding = new MethodBinding(this.binding.modifiers, this.binding.selector, this.binding.returnType, |
964 |
this.actualMethodBinding = new MethodBinding(this.binding.modifiers, this.binding.selector, this.binding.returnType, |
| 962 |
this.binding instanceof SyntheticMethodBinding ? this.descriptor.parameters : this.binding.parameters, // retain any faults in parameter list. |
965 |
this.binding instanceof SyntheticMethodBinding ? this.descriptor.parameters : this.binding.parameters, // retain any faults in parameter list. |
| 963 |
this.binding.thrownExceptions, this.binding.declaringClass); |
966 |
this.binding.thrownExceptions, this.binding.declaringClass); |