Buggy code:
public class ClassScope extends Scope { public TypeDeclaration referenceContext ; private TypeReference superTypeReference ; private static final char [ ] IncompleteHierarchy = new char [ ] { 'h' , 'a' , 's' , '<seq2seq4repair_space>' , 'i' , 'n' , 'c' , 'o' , 'n' , 's' , 'i' , 's' , 't' , 'e' , 'n' , 't' , '<seq2seq4repair_space>' , 'h' , 'i' , 'e' , 'r' , 'a' , 'r' , 'c' , 'h' , 'y' } ; public ClassScope ( Scope parent , TypeDeclaration context ) { } void buildAnonymousTypeBinding ( SourceTypeBinding enclosingType , ReferenceBinding supertype ) { } private void buildFields ( ) { boolean hierarchyIsInconsistent = referenceContext . binding . isHierarchyInconsistent ( ) ; if ( ( referenceContext . fields ) == null ) { if ( hierarchyIsInconsistent ) { referenceContext . binding . fields = new FieldBinding [ 1 ] ; <START_BUG> referenceContext . binding . fields [ 0 ] = new FieldBinding ( ClassScope . IncompleteHierarchy , VoidBinding , AccPrivate , referenceContext . binding , null ) ; <END_BUG> } else { referenceContext . binding . fields = NoFields ; } return ; } FieldDeclaration [ ] fields = referenceContext . fields ; int size = fields . length ; int count = 0 ; for ( int i = 0 ; i < size ; i ++ ) { switch ( fields [ i ] . getKind ( ) ) { case AbstractVariableDeclaration . FIELD : case AbstractVariableDeclaration . ENUM_CONSTANT : count ++ ; } } if ( hierarchyIsInconsistent ) count ++ ; FieldBinding [ ] fieldBindings = new FieldBinding [ count ] ; HashtableOfObject knownFieldNames = new HashtableOfObject ( count ) ; boolean duplicate = false ; count = 0 ; for ( int i = 0 ; i < size ; i ++ ) { FieldDeclaration field = fields [ i ] ; if ( ( field . getKind ( ) ) == ( AbstractVariableDeclaration . INITIALIZER ) ) { if ( referenceContext . binding . isInterface ( ) ) problemReporter ( ) . interfaceCannotHaveInitializers ( referenceContext . binding , field ) ; } else { FieldBinding fieldBinding = new FieldBinding ( field , null , ( ( field . modifiers ) | ( AccUnresolved ) ) , referenceContext . binding ) ; checkAndSetModifiersForField ( fieldBinding , field ) ; if ( knownFieldNames . containsKey ( field . name ) ) { duplicate = true ; FieldBinding previousBinding = ( ( FieldBinding ) ( knownFieldNames . get ( field . name ) ) ) ; if ( previousBinding != null ) { for ( int f = 0 ; f < i ; f ++ ) { FieldDeclaration previousField = fields [ f ] ; if ( ( previousField . binding ) == previousBinding ) { problemReporter ( ) . duplicateFieldInType ( referenceContext . binding , previousField ) ; previousField . binding = null ; break ; } } } knownFieldNames . put ( field . name , null ) ; problemReporter ( ) . duplicateFieldInType ( referenceContext . binding , field ) ; field . binding = null ; } else { knownFieldNames . put ( field . name , fieldBinding ) ; if ( fieldBinding != null ) fieldBindings [ ( count ++ ) ] = fieldBinding ; } } } if ( duplicate ) { FieldBinding [ ] newFieldBindings = new FieldBinding [ fieldBindings . length ] ; size = count ; count = 0 ; for ( int i = 0 ; i < size ; i ++ ) { FieldBinding fieldBinding = fieldBindings [ i ] ; if ( ( knownFieldNames . get ( fieldBinding . name ) ) != null ) newFieldBindings [ ( count ++ ) ] = fieldBinding ; } fieldBindings = newFieldBindings ; } if ( hierarchyIsInconsistent ) fieldBindings [ ( count ++ ) ] = new FieldBinding ( ClassScope . IncompleteHierarchy , VoidBinding , AccPrivate , referenceContext . binding , null ) ; if ( count != ( fieldBindings . length ) ) System . arraycopy ( fieldBindings , 0 , ( fieldBindings = new FieldBinding [ count ] ) , 0 , count ) ; for ( int i = 0 ; i < count ; i ++ ) fieldBindings [ i ] . id = i ; referenceContext . binding . fields = fieldBindings ; } void buildFieldsAndMethods ( ) { } private LocalTypeBinding buildLocalType ( SourceTypeBinding enclosingType , PackageBinding packageBinding ) { } void buildLocalTypeBinding ( SourceTypeBinding enclosingType ) { } private void buildMemberTypes ( AccessRestriction accessRestriction ) { } private void buildMethods ( ) { } SourceTypeBinding buildType ( SourceTypeBinding enclosingType , PackageBinding packageBinding , AccessRestriction accessRestriction ) { } private void buildTypeVariables ( ) { } private void checkAndSetModifiers ( ) { } private void checkAndSetModifiersForField ( FieldBinding fieldBinding , FieldDeclaration fieldDecl ) { } private void checkForInheritedMemberTypes ( SourceTypeBinding sourceType ) { } private void checkParameterizedTypeBounds ( ) { } private void connectMemberTypes ( ) { } private boolean connectSuperclass ( ) { } private boolean connectEnumSuperclass ( ) { } private boolean connectSuperInterfaces ( ) { } void connectTypeHierarchy ( ) { } private void connectTypeHierarchyWithoutMembers ( ) { } public boolean detectCycle ( TypeBinding superType , TypeReference reference , TypeBinding [ ] argTypes ) { } private boolean detectCycle ( SourceTypeBinding sourceType , ReferenceBinding superType , TypeReference reference ) { } private ReferenceBinding findAmbiguousInterface ( ReferenceBinding newInterface , ReferenceBinding currentType ) { } private ReferenceBinding findSupertype ( TypeReference typeReference ) { } public ProblemReporter problemReporter ( ) { } public TypeDeclaration referenceType ( ) { } public String toString ( ) { } }

Fix:
referenceContext . binding . fields [ 0 ] = new FieldBinding ( ClassScope . IncompleteHierarchy , IntBinding , AccPrivate , referenceContext . binding , null ) ;