View | Details | Raw Unified | Return to bug 83847 | Differences between
and this patch

Collapse All | Expand All

(-)QualifiedAllocationExpression.java (-1 / +4 lines)
Lines 318-324 Link Here
318
			}
318
			}
319
			scope.problemReporter().typeMismatchError(enclosingInstanceType, expectedType, this.enclosingInstance);
319
			scope.problemReporter().typeMismatchError(enclosingInstanceType, expectedType, this.enclosingInstance);
320
			return this.resolvedType = receiverType;
320
			return this.resolvedType = receiverType;
321
		}
321
		} else if (receiverType.isEnum() && type != null) {
322
            scope.problemReporter().cannotInstantiate(type, receiverType);
323
            return this.resolvedType = receiverType;
324
        }
322
325
323
		if (receiverType.isTypeVariable()) {
326
		if (receiverType.isTypeVariable()) {
324
			receiverType = new ProblemReferenceBinding(receiverType.sourceName(), (ReferenceBinding)receiverType, ProblemReasons.IllegalSuperTypeVariable);
327
			receiverType = new ProblemReferenceBinding(receiverType.sourceName(), (ReferenceBinding)receiverType, ProblemReasons.IllegalSuperTypeVariable);

Return to bug 83847