Buggy code:
public class SourceTypeBinding extends ReferenceBinding { public ReferenceBinding superclass ; public ReferenceBinding [ ] superInterfaces ; public FieldBinding [ ] fields ; public MethodBinding [ ] methods ; public ReferenceBinding [ ] memberTypes ; public TypeVariableBinding [ ] typeVariables ; public ClassScope scope ; public static final int METHOD_EMUL = 0 ; public static final int FIELD_EMUL = 1 ; public static final int CLASS_LITERAL_EMUL = 2 ; public static final int RECEIVER_TYPE_EMUL = 3 ; HashMap [ ] synthetics ; char [ ] genericReferenceTypeSignature ; public SourceTypeBinding ( char [ ] [ ] compoundName , PackageBinding fPackage , ClassScope scope ) { } private void addDefaultAbstractMethod ( MethodBinding abstractMethod ) { } public 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 ) { if ( ( synthetics ) == null ) synthetics = new HashMap [ 4 ] ; if ( ( synthetics [ SourceTypeBinding . FIELD_EMUL ] ) == null ) synthetics [ SourceTypeBinding . FIELD_EMUL ] = new HashMap ( 5 ) ; SyntheticFieldBinding synthField = ( ( SyntheticFieldBinding ) ( synthetics [ SourceTypeBinding . FIELD_EMUL ] . get ( key ) ) ) ; if ( synthField == null ) { <START_BUG> synthField = new SyntheticFieldBinding ( fieldName , scope . createArrayType ( IntBinding , 1 ) , ( ( ( ( AccPrivate ) | ( AccStatic ) ) | ( AccSynthetic ) ) | ( AccFinal ) ) , this , Constant . NotAConstant , synthetics [ SourceTypeBinding . FIELD_EMUL ] . size ( ) ) ; <END_BUG> synthetics [ SourceTypeBinding . FIELD_EMUL ] . put ( key , synthField ) ; } boolean needRecheck ; int index = 0 ; do { needRecheck = false ; FieldBinding existingField ; if ( ( existingField = this . getField ( synthField . name , true ) ) != null ) { TypeDeclaration typeDecl = scope . referenceContext ; for ( int i = 0 , max = typeDecl . fields . length ; i < max ; i ++ ) { FieldDeclaration fieldDecl = typeDecl . fields [ i ] ; if ( ( fieldDecl . binding ) == existingField ) { synthField . name = CharOperation . concat ( fieldName , ( "_" + ( String . valueOf ( ( index ++ ) ) ) ) . toCharArray ( ) ) ; needRecheck = true ; break ; } } } } while ( needRecheck ) ; return synthField ; } public SyntheticMethodBinding addSyntheticMethodForSwitchEnum ( TypeBinding enumBinding ) { } public SyntheticMethodBinding addSyntheticMethod ( MethodBinding targetMethod , boolean isSuperAccess ) { } public SyntheticMethodBinding addSyntheticBridgeMethod ( MethodBinding inheritedMethodToBridge , MethodBinding targetMethod ) { } public void collectSubstitutes ( Scope currentScope , TypeBinding otherType , Map substitutes , int constraint ) { } 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 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 ) { } private MethodBinding resolveTypesFor ( MethodBinding method ) { } public final int sourceEnd ( ) { } public final int sourceStart ( ) { } public ReferenceBinding superclass ( ) { } public ReferenceBinding [ ] superInterfaces ( ) { } public SyntheticMethodBinding [ ] syntheticMethods ( ) { } public FieldBinding [ ] syntheticFields ( ) { } public String toString ( ) { } public TypeVariableBinding [ ] typeVariables ( ) { } void verifyMethods ( MethodVerifier verifier ) { } }

Fix:
synthField = new SyntheticFieldBinding ( fieldName , scope . createArrayType ( IntBinding , 1 ) , ( ( ( AccPrivate ) | ( AccStatic ) ) | ( AccSynthetic ) ) , this , Constant . NotAConstant , synthetics [ SourceTypeBinding . FIELD_EMUL ] . size ( ) ) ;