Buggy code:
public ReferenceBinding [ ] superInterfaces ; private FieldBinding [ ] fields ; private MethodBinding [ ] methods ; public ReferenceBinding [ ] memberTypes ; public TypeVariableBinding [ ] typeVariables ; public ClassScope scope ; private static final int METHOD_EMUL = 0 ; private static final int FIELD_EMUL = 1 ; private static final int CLASS_LITERAL_EMUL = 2 ; private static final int RECEIVER_TYPE_EMUL = 3 ; private static final int EMUL_MAX_VALUE = 4 ; HashMap [ ] synthetics ; char [ ] genericReferenceTypeSignature ; private SimpleLookupTable storedAnnotations = null ; public SourceTypeBinding ( char [ ] [ ] compoundName , PackageBinding fPackage , ClassScope scope ) { } private void addDefaultAbstractMethods ( ) { } public FieldBinding addSyntheticFieldForInnerclass ( LocalVariableBinding actualOuterLocalVariable ) { } public FieldBinding addSyntheticFieldForInnerclass ( ReferenceBinding enclosingType ) { } public FieldBinding addSyntheticFieldForClassLiteral ( TypeBinding targetType , BlockScope blockScope ) { } public FieldBinding addSyntheticFieldForAssert ( BlockScope blockScope ) { } public FieldBinding addSyntheticFieldForEnumValues ( ) { } public SyntheticMethodBinding addSyntheticMethod ( FieldBinding targetField , boolean isReadAccess ) { } public SyntheticMethodBinding addSyntheticEnumMethod ( char [ ] selector ) { } public SyntheticFieldBinding addSyntheticFieldForSwitchEnum ( char [ ] fieldName , String key ) { } public SyntheticMethodBinding addSyntheticMethodForSwitchEnum ( TypeBinding enumBinding ) { } public SyntheticMethodBinding addSyntheticMethod ( MethodBinding targetMethod , boolean isSuperAccess ) { } public SyntheticMethodBinding addSyntheticBridgeMethod ( MethodBinding inheritedMethodToBridge , MethodBinding targetMethod ) { } public int kind ( ) { } public char [ ] computeUniqueKey ( boolean isLeaf ) { } void faultInTypesForFieldsAndMethods ( ) { } public FieldBinding [ ] fields ( ) { } public char [ ] genericTypeSignature ( ) { } public char [ ] genericSignature ( ) { } public long getAnnotationTagBits ( ) { } public MethodBinding [ ] getDefaultAbstractMethods ( ) { } public MethodBinding getExactConstructor ( TypeBinding [ ] argumentTypes ) { } public MethodBinding getExactMethod ( char [ ] selector , TypeBinding [ ] argumentTypes , CompilationUnitScope refScope ) { } public FieldBinding getField ( char [ ] fieldName , boolean needResolve ) { } public MethodBinding [ ] getMethods ( char [ ] selector ) { } public FieldBinding getSyntheticField ( LocalVariableBinding actualOuterLocalVariable ) { } public FieldBinding getSyntheticField ( ReferenceBinding targetEnclosingType , boolean onlyExactMatch ) { } public SyntheticMethodBinding getSyntheticBridgeMethod ( MethodBinding inheritedMethodToBridge ) { } public void initializeDeprecatedAnnotationTagBits ( ) { } public boolean isEquivalentTo ( TypeBinding otherType ) { } public boolean isGenericType ( ) { } public ReferenceBinding [ ] memberTypes ( ) { } public FieldBinding getUpdatedFieldBinding ( FieldBinding targetField , ReferenceBinding newDeclaringClass ) { } public MethodBinding getUpdatedMethodBinding ( MethodBinding targetMethod , ReferenceBinding newDeclaringClass ) { } public boolean hasMemberTypes ( ) { } public MethodBinding [ ] methods ( ) { } private FieldBinding resolveTypeFor ( FieldBinding field ) { if ( ( ( field . modifiers ) & ( ExtraCompilerModifiers . AccUnresolved ) ) == 0 ) return field ; if ( ( this . scope . compilerOptions ( ) . sourceLevel ) >= ( ClassFileConstants . JDK1_5 ) ) { if ( ( ( field . getAnnotationTagBits ( ) ) & ( TagBits . AnnotationDeprecated ) ) != 0 ) field . modifiers |= ClassFileConstants . AccDeprecated ; } if ( ( isViewedAsDeprecated ( ) ) && ( ! ( field . isDeprecated ( ) ) ) ) field . modifiers |= ExtraCompilerModifiers . AccDeprecatedImplicitly ; if ( hasRestrictedAccess ( ) ) field . modifiers |= ExtraCompilerModifiers . AccRestrictedAccess ; FieldDeclaration [ ] fieldDecls = this . scope . referenceContext . fields ; for ( int f = 0 , length = fieldDecls . length ; f < length ; f ++ ) { if ( ( fieldDecls [ f ] . binding ) != field ) continue ; MethodScope initializationScope = ( field . isStatic ( ) ) ? this . scope . referenceContext . staticInitializerScope : this . scope . referenceContext . initializerScope ; FieldBinding previousField = initializationScope . initializedField ; try { initializationScope . initializedField = field ; FieldDeclaration fieldDecl = fieldDecls [ f ] ; <START_BUG> TypeBinding fieldType = ( ( fieldDecl . getKind ( ) ) == ( AbstractVariableDeclaration . ENUM_CONSTANT ) ) ? initializationScope . environment ( ) . convertToRawType ( this ) : fieldDecl . type . resolveType ( initializationScope , true ) ; <END_BUG> field . type = fieldType ; field . modifiers &= ~ ( ExtraCompilerModifiers . AccUnresolved ) ; if ( fieldType == null ) { fieldDecl . binding = null ; return null ; } if ( fieldType == ( TypeBinding . VOID ) ) { this . scope . problemReporter ( ) . variableTypeCannotBeVoid ( fieldDecl ) ; fieldDecl . binding = null ; return null ; } if ( ( fieldType . isArrayType ( ) ) && ( ( ( ( ArrayBinding ) ( fieldType ) ) . leafComponentType ) == ( TypeBinding . VOID ) ) ) { this . scope . problemReporter ( ) . variableTypeCannotBeVoidArray ( fieldDecl ) ; fieldDecl . binding = null ; return null ; } TypeBinding leafType = fieldType . leafComponentType ( ) ; if ( ( leafType instanceof ReferenceBinding ) && ( ( ( ( ( ReferenceBinding ) ( leafType ) ) . modifiers ) & ( ExtraCompilerModifiers . AccGenericSignature ) ) != 0 ) ) { field . modifiers |= ExtraCompilerModifiers . AccGenericSignature ; } } finally { initializationScope . initializedField = previousField ; } return field ; } return null ; } public MethodBinding resolveTypesFor ( MethodBinding method ) { } public AnnotationHolder retrieveAnnotationHolder ( Binding binding , boolean forceInitialization ) { } public void setFields ( FieldBinding [ ] fields ) { } public void setMethods ( MethodBinding [ ] methods ) { } public final int sourceEnd ( ) { } public final int sourceStart ( ) { } SimpleLookupTable storedAnnotations ( boolean forceInitialize ) { } public ReferenceBinding superclass ( ) { } public ReferenceBinding [ ] superInterfaces ( ) { }

Fix:
TypeBinding fieldType = ( ( fieldDecl . getKind ( ) ) == ( AbstractVariableDeclaration . ENUM_CONSTANT ) ) ? initializationScope . environment ( ) . convertToRawType ( this , false ) : fieldDecl . type . resolveType ( initializationScope , true ) ;