Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
View | Details | Raw Unified | Return to bug 423582
Collapse All | Expand All

(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/AllocationExpression.java (-1 / +1 lines)
Lines 309-315 Link Here
309
			this.resolvedType = this.type.resolveType(scope, true /* check bounds*/);
309
			this.resolvedType = this.type.resolveType(scope, true /* check bounds*/);
310
			if (isDiamond && this.typeExpected == null && this.expressionContext == INVOCATION_CONTEXT && compilerOptions.sourceLevel >= ClassFileConstants.JDK1_8) {
310
			if (isDiamond && this.typeExpected == null && this.expressionContext == INVOCATION_CONTEXT && compilerOptions.sourceLevel >= ClassFileConstants.JDK1_8) {
311
				if (this.resolvedType != null && this.resolvedType.isValidBinding())
311
				if (this.resolvedType != null && this.resolvedType.isValidBinding())
312
					return this.resolvedType = new PolyTypeBinding(this);
312
					return new PolyTypeBinding(this);
313
			}
313
			}
314
		}
314
		}
315
	} else {
315
	} else {
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ConditionalExpression.java (-1 / +1 lines)
Lines 461-467 Link Here
461
			
461
			
462
			if (this.originalValueIfTrueType.kind() == Binding.POLY_TYPE || this.originalValueIfFalseType.kind() == Binding.POLY_TYPE) {
462
			if (this.originalValueIfTrueType.kind() == Binding.POLY_TYPE || this.originalValueIfFalseType.kind() == Binding.POLY_TYPE) {
463
				this.isPolyExpression = true;
463
				this.isPolyExpression = true;
464
				return this.resolvedType = new PolyTypeBinding(this);
464
				return new PolyTypeBinding(this);
465
			}
465
			}
466
		} else {
466
		} else {
467
			if (this.originalValueIfTrueType.kind() == Binding.POLY_TYPE)
467
			if (this.originalValueIfTrueType.kind() == Binding.POLY_TYPE)
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/LambdaExpression.java (-1 / +4 lines)
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);
(-)a/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/ReferenceExpression.java (-1 / +1 lines)
Lines 263-269 Link Here
263
263
264
    	if (this.expectedType == null && this.expressionContext == INVOCATION_CONTEXT) {
264
    	if (this.expectedType == null && this.expressionContext == INVOCATION_CONTEXT) {
265
    		this.exactMethodBinding = isMethodReference() ? scope.getExactMethod(lhsType, this.selector, this) : scope.getExactConstructor(lhsType, this);
265
    		this.exactMethodBinding = isMethodReference() ? scope.getExactMethod(lhsType, this.selector, this) : scope.getExactConstructor(lhsType, this);
266
    		return this.resolvedType = new PolyTypeBinding(this);
266
    		return new PolyTypeBinding(this);
267
		}
267
		}
268
		super.resolveType(scope);
268
		super.resolveType(scope);
269
		
269
		

Return to bug 423582