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

Collapse All | Expand All

(-)compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java (+3 lines)
Lines 342-347 Link Here
342
		// insert anonymous type in scope
342
		// insert anonymous type in scope
343
		scope.addAnonymousType(this.anonymousType, (ReferenceBinding) receiverType);
343
		scope.addAnonymousType(this.anonymousType, (ReferenceBinding) receiverType);
344
		this.anonymousType.resolve(scope);		
344
		this.anonymousType.resolve(scope);		
345
		if (this.superTypeBinding.erasure().id == T_JavaLangEnum) {
346
			scope.problemReporter().cannotExtendEnum(this.anonymousType.binding, this.type, this.superTypeBinding);
347
		}
345
		
348
		
346
		if ((receiverType.tagBits & TagBits.HasDirectWildcard) != 0) {
349
		if ((receiverType.tagBits & TagBits.HasDirectWildcard) != 0) {
347
			scope.problemReporter().superTypeCannotUseWildcard(anonymousType.binding, this.type, receiverType);
350
			scope.problemReporter().superTypeCannotUseWildcard(anonymousType.binding, this.type, receiverType);

Return to bug 127766