Index: compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java =================================================================== RCS file: /data/cvs/eclipse/org.eclipse.jdt.core/compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java,v retrieving revision 1.36 diff -u -r1.36 QualifiedAllocationExpression.java --- compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java 22 Jul 2003 11:30:47 -0000 1.36 +++ compiler/org/eclipse/jdt/internal/compiler/ast/QualifiedAllocationExpression.java 9 Oct 2003 10:21:27 -0000 @@ -267,7 +267,7 @@ // The enclosing instance must be compatible with the innermost enclosing type ReferenceBinding expectedType = this.binding.declaringClass.enclosingType(); if (enclosingInstanceType.isCompatibleWith(expectedType)) { - return receiverType; + return this.resolvedType = receiverType; } scope.problemReporter().typeMismatchErrorActualTypeExpectedType( this.enclosingInstance, @@ -336,7 +336,10 @@ inheritedBinding.declaringClass = this.superTypeBinding; } scope.problemReporter().invalidConstructor(this, inheritedBinding); - return null; + // fault tolerance, no super constructor but resolve anonymous + scope.addAnonymousType(anonymousType, (ReferenceBinding) receiverType); + anonymousType.resolve(scope); + return this.resolvedType = receiverType; } if (enclosingInstance != null) { if (!enclosingInstanceType.isCompatibleWith(inheritedBinding.declaringClass.enclosingType())) { @@ -344,7 +347,7 @@ enclosingInstance, enclosingInstanceType, inheritedBinding.declaringClass.enclosingType()); - return null; + return this.resolvedType = receiverType; } }