Buggy code:
public class SingleNameReference extends NameReference implements OperatorIds { public char [ ] token ; public MethodBinding [ ] syntheticAccessors ; public static final int READ = 0 ; public static final int WRITE = 1 ; public TypeBinding genericCast ; public SingleNameReference ( char [ ] source , long pos ) { } public FlowInfo analyseAssignment ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo , Assignment assignment , boolean isCompound ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo , boolean valueRequired ) { } public TypeBinding checkFieldAccess ( BlockScope scope ) { } public void computeConversion ( Scope scope , TypeBinding runtimeTimeType , TypeBinding compileTimeType ) { } public void generateAssignment ( BlockScope currentScope , CodeStream codeStream , Assignment assignment , boolean valueRequired ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { } public void generateCompoundAssignment ( BlockScope currentScope , CodeStream codeStream , Expression expression , int operator , int assignmentImplicitConversion , boolean valueRequired ) { } public void generateCompoundAssignment ( BlockScope currentScope , CodeStream codeStream , MethodBinding writeAccessor , Expression expression , int operator , int assignmentImplicitConversion , boolean valueRequired ) { } public void generatePostIncrement ( BlockScope currentScope , CodeStream codeStream , CompoundAssignment postIncrement , boolean valueRequired ) { } public void generateReceiver ( CodeStream codeStream ) { } public TypeBinding [ ] genericTypeArguments ( ) { } public void manageEnclosingInstanceAccessIfNecessary ( BlockScope currentScope , FlowInfo flowInfo ) { } public void manageSyntheticAccessIfNecessary ( BlockScope currentScope , FlowInfo flowInfo , boolean isReadAccess ) { } public StringBuffer printExpression ( int indent , StringBuffer output ) { } public TypeBinding reportError ( BlockScope scope ) { } public TypeBinding resolveType ( BlockScope scope ) { this . actualReceiverType = this . receiverType = scope . enclosingSourceType ( ) ; if ( ( this . codegenBinding = this . binding = scope . getBinding ( token , ( ( bits ) & ( ASTNode . RestrictiveFlagMASK ) ) , this , true ) ) . isValidBinding ( ) ) { switch ( ( bits ) & ( ASTNode . RestrictiveFlagMASK ) ) { case VARIABLE : case ( VARIABLE ) | ( TypeConstants . TYPE ) : if ( ( binding ) instanceof VariableBinding ) { VariableBinding variable = ( ( VariableBinding ) ( binding ) ) ; if ( ( binding ) instanceof LocalVariableBinding ) { bits &= ~ ( ASTNode . RestrictiveFlagMASK ) ; bits |= LOCAL ; if ( ( ( this . bits ) & ( IsStrictlyAssignedMASK ) ) == 0 ) { constant = variable . constant ( ) ; } else { constant = NotAConstant ; } if ( ( ! ( variable . isFinal ( ) ) ) && ( ( ( bits ) & ( ASTNode . DepthMASK ) ) != 0 ) ) { scope . problemReporter ( ) . cannotReferToNonFinalOuterLocal ( ( ( LocalVariableBinding ) ( variable ) ) , this ) ; } return this . resolvedType = variable . type ; } FieldBinding field = ( ( FieldBinding ) ( this . binding ) ) ; if ( ( ! ( field . isStatic ( ) ) ) && ( ( scope . environment ( ) . options . getSeverity ( CompilerOptions . UnqualifiedFieldAccess ) ) != ( ProblemSeverities . Ignore ) ) ) { scope . problemReporter ( ) . unqualifiedFieldAccess ( this , field ) ; } return this . resolvedType = checkFieldAccess ( scope ) ; } bits &= ~ ( ASTNode . RestrictiveFlagMASK ) ; bits |= TypeConstants . TYPE ; case TypeConstants . TYPE : constant = Constant . NotAConstant ; TypeBinding type = ( ( TypeBinding ) ( binding ) ) ; if ( isTypeUseDeprecated ( type , scope ) ) scope . problemReporter ( ) . deprecatedType ( type , this ) ; <START_BUG> return this . resolvedType = convertToRawType ( type , scope ) ; <END_BUG> } } return this . resolvedType = this . reportError ( scope ) ; } public void traverse ( ASTVisitor visitor , BlockScope scope ) { } public String unboundReferenceErrorName ( ) { } }

Fix:
return this . resolvedType = scope . convertToRawType ( type ) ;