Buggy code:
public class JavadocAllocationExpression extends AllocationExpression { public int tagSourceStart ; public int tagSourceEnd ; public int tagValue ; public int memberStart ; public char [ ] [ ] qualification ; public JavadocAllocationExpression ( int start , int end ) { } public JavadocAllocationExpression ( long pos ) { } TypeBinding internalResolveType ( Scope scope ) { this . constant = Constant . NotAConstant ; if ( ( this . type ) == null ) { this . resolvedType = scope . enclosingSourceType ( ) ; } else if ( ( scope . kind ) == ( Scope . CLASS_SCOPE ) ) { this . resolvedType = this . type . resolveType ( ( ( ClassScope ) ( scope ) ) ) ; } else { this . resolvedType = this . type . resolveType ( ( ( BlockScope ) ( scope ) ) , true ) ; } TypeBinding [ ] argumentTypes = Binding . NO_PARAMETERS ; boolean hasTypeVarArgs = false ; if ( ( this . arguments ) != null ) { boolean argHasError = false ; int length = this . arguments . length ; argumentTypes = new TypeBinding [ length ] ; for ( int i = 0 ; i < length ; i ++ ) { Expression argument = this . arguments [ i ] ; if ( ( scope . kind ) == ( Scope . CLASS_SCOPE ) ) { argumentTypes [ i ] = argument . resolveType ( ( ( ClassScope ) ( scope ) ) ) ; } else { argumentTypes [ i ] = argument . resolveType ( ( ( BlockScope ) ( scope ) ) ) ; } if ( ( argumentTypes [ i ] ) == null ) { argHasError = true ; } else if ( ! hasTypeVarArgs ) { hasTypeVarArgs = argumentTypes [ i ] . isTypeVariable ( ) ; } } if ( argHasError ) { return null ; } } if ( ( this . resolvedType ) == null ) { return null ; } <START_BUG> this . resolvedType = scope . environment ( ) . convertToRawType ( this . type . resolvedType ) ; <END_BUG> SourceTypeBinding enclosingType = scope . enclosingSourceType ( ) ; if ( enclosingType == null ? false : enclosingType . isCompatibleWith ( this . resolvedType ) ) { this . bits |= ASTNode . SuperAccess ; } ReferenceBinding allocationType = ( ( ReferenceBinding ) ( this . resolvedType ) ) ; this . binding = scope . getConstructor ( allocationType , argumentTypes , this ) ; if ( ! ( this . binding . isValidBinding ( ) ) ) { ReferenceBinding enclosingTypeBinding = allocationType ; MethodBinding contructorBinding = this . binding ; while ( ( ! ( contructorBinding . isValidBinding ( ) ) ) && ( ( enclosingTypeBinding . isMemberType ( ) ) || ( enclosingTypeBinding . isLocalType ( ) ) ) ) { enclosingTypeBinding = enclosingTypeBinding . enclosingType ( ) ; contructorBinding = scope . getConstructor ( enclosingTypeBinding , argumentTypes , this ) ; } if ( contructorBinding . isValidBinding ( ) ) { this . binding = contructorBinding ; } } if ( ! ( this . binding . isValidBinding ( ) ) ) { MethodBinding methodBinding = scope . getMethod ( this . resolvedType , this . resolvedType . sourceName ( ) , argumentTypes , this ) ; if ( methodBinding . isValidBinding ( ) ) { this . binding = methodBinding ; } else { if ( ( this . binding . declaringClass ) == null ) { this . binding . declaringClass = allocationType ; } scope . problemReporter ( ) . javadocInvalidConstructor ( this , this . binding , scope . getDeclarationModifiers ( ) ) ; } return this . resolvedType ; } else if ( binding . isVarargs ( ) ) { int length = argumentTypes . length ; if ( ! ( ( ( binding . parameters . length ) == length ) && ( argumentTypes [ ( length - 1 ) ] . isArrayType ( ) ) ) ) { MethodBinding problem = new ProblemMethodBinding ( this . binding , this . binding . selector , argumentTypes , ProblemReasons . NotFound ) ; scope . problemReporter ( ) . javadocInvalidConstructor ( this , problem , scope . getDeclarationModifiers ( ) ) ; } } else if ( hasTypeVarArgs ) { MethodBinding problem = new ProblemMethodBinding ( this . binding , this . binding . selector , argumentTypes , ProblemReasons . NotFound ) ; scope . problemReporter ( ) . javadocInvalidConstructor ( this , problem , scope . getDeclarationModifiers ( ) ) ; } else if ( ( this . binding ) instanceof ParameterizedMethodBinding ) { ParameterizedMethodBinding paramMethodBinding = ( ( ParameterizedMethodBinding ) ( this . binding ) ) ; if ( paramMethodBinding . hasSubstitutedParameters ( ) ) { int length = argumentTypes . length ; for ( int i = 0 ; i < length ; i ++ ) { if ( ( ( paramMethodBinding . parameters [ i ] ) != ( argumentTypes [ i ] ) ) && ( ( paramMethodBinding . parameters [ i ] . erasure ( ) ) != ( argumentTypes [ i ] . erasure ( ) ) ) ) { MethodBinding problem = new ProblemMethodBinding ( this . binding , this . binding . selector , argumentTypes , ProblemReasons . NotFound ) ; scope . problemReporter ( ) . javadocInvalidConstructor ( this , problem , scope . getDeclarationModifiers ( ) ) ; break ; } } } } else if ( this . resolvedType . isMemberType ( ) ) { int length = qualification . length ; if ( length > 1 ) { ReferenceBinding enclosingTypeBinding = allocationType ;

Fix:
this . resolvedType = scope . environment ( ) . convertToRawType ( this . type . resolvedType , true ) ;