Buggy code:
public class CodeSnippetSingleNameReference extends SingleNameReference implements InvocationSite , ProblemReasons , EvaluationConstants { EvaluationContext evaluationContext ; FieldBinding delegateThis ; public CodeSnippetSingleNameReference ( char [ ] source , long pos , EvaluationContext evaluationContext ) { } public FlowInfo analyseCode ( BlockScope currentScope , FlowContext flowContext , FlowInfo flowInfo , boolean valueRequired ) { } public TypeBinding checkFieldAccess ( BlockScope scope ) { } public void generateAssignment ( BlockScope currentScope , CodeStream codeStream , Assignment assignment , boolean valueRequired ) { } public void generateCode ( BlockScope currentScope , CodeStream codeStream , boolean valueRequired ) { int pc = codeStream . position ; if ( ( constant ) != ( NotAConstant ) ) { if ( valueRequired ) { codeStream . generateConstant ( constant , implicitConversion ) ; } } else { switch ( ( bits ) & ( ASTNode . RestrictiveFlagMASK ) ) { case FIELD : FieldBinding fieldBinding ; if ( valueRequired ) { if ( ( ( fieldBinding = ( ( FieldBinding ) ( binding ) ) ) . constant ) == ( NotAConstant ) ) { if ( fieldBinding . canBeSeenBy ( getReceiverType ( currentScope ) , this , currentScope ) ) { boolean isStatic ; if ( ! ( isStatic = fieldBinding . isStatic ( ) ) ) { if ( ( ( bits ) & ( ASTNode . DepthMASK ) ) != 0 ) { Object [ ] emulationPath = currentScope . getExactEmulationPath ( currentScope . enclosingSourceType ( ) . enclosingTypeAt ( ( ( ( bits ) & ( ASTNode . DepthMASK ) ) > > ( ASTNode . DepthSHIFT ) ) ) ) ; if ( emulationPath == null ) { currentScope . problemReporter ( ) . needImplementation ( ) ; } else { codeStream . generateOuterAccess ( emulationPath , this , currentScope ) ; } } else { generateReceiver ( codeStream ) ; } } if ( isStatic ) { codeStream . getstatic ( fieldBinding ) ; } else { codeStream . getfield ( fieldBinding ) ; } } else { if ( ! ( fieldBinding . isStatic ( ) ) ) { if ( ( ( bits ) & ( ASTNode . DepthMASK ) ) != 0 ) { currentScope . problemReporter ( ) . needImplementation ( ) ; } else { generateReceiver ( codeStream ) ; } } else { codeStream . aconst_null ( ) ; } ( ( CodeSnippetCodeStream ) ( codeStream ) ) . generateEmulatedReadAccessForField ( fieldBinding ) ; } codeStream . generateImplicitConversion ( implicitConversion ) ; } else { codeStream . generateConstant ( fieldBinding . constant , implicitConversion ) ; } } break ; case LOCAL : LocalVariableBinding localBinding = ( ( LocalVariableBinding ) ( binding ) ) ; if ( valueRequired ) { if ( ( ( bits ) & ( ASTNode . DepthMASK ) ) != 0 ) { VariableBinding [ ] path = currentScope . getEmulationPath ( localBinding ) ; if ( path == null ) { currentScope . problemReporter ( ) . needImplementation ( ) ; } else { codeStream . generateOuterAccess ( path , this , currentScope ) ; } } else { codeStream . load ( localBinding ) ; } codeStream . generateImplicitConversion ( implicitConversion ) ; } } } <START_BUG> codeStream . recordPositionsFrom ( pc , this ) ; <END_BUG> } 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 getReceiverType ( BlockScope currentScope ) { } public TypeBinding reportError ( BlockScope scope ) { } }

Fix:
codeStream . recordPositionsFrom ( pc , this . sourceStart ) ;