Index: QualifiedAllocationExpression.java =================================================================== RCS file: /home/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java,v retrieving revision 1.61 diff -u -r1.61 QualifiedAllocationExpression.java --- QualifiedAllocationExpression.java 7 Jan 2005 17:53:59 -0000 1.61 +++ QualifiedAllocationExpression.java 27 Jan 2005 19:44:17 -0000 @@ -318,7 +318,10 @@ } scope.problemReporter().typeMismatchError(enclosingInstanceType, expectedType, this.enclosingInstance); return this.resolvedType = receiverType; - } + } else if (receiverType.isEnum() && type != null) { + scope.problemReporter().cannotInstantiate(type, receiverType); + return this.resolvedType = receiverType; + } if (receiverType.isTypeVariable()) { receiverType = new ProblemReferenceBinding(receiverType.sourceName(), (ReferenceBinding)receiverType, ProblemReasons.IllegalSuperTypeVariable);