Buggy code:
class CodeSnippetToCuMapper implements EvaluationConstants { public char [ ] cuSource ; public int lineNumberOffset = 0 ; public int startPosOffset = 0 ; private char [ ] codeSnippet ; private char [ ] packageName ; private char [ ] [ ] imports ; char [ ] className ; private char [ ] varClassName ; private char [ ] [ ] localVarNames ; private char [ ] [ ] localVarTypeNames ; private int [ ] localVarModifiers ; private char [ ] declaringTypeName ; public CodeSnippetToCuMapper ( char [ ] codeSnippet , char [ ] packageName , char [ ] [ ] imports , char [ ] className , char [ ] varClassName , char [ ] [ ] localVarNames , char [ ] [ ] localVarTypeNames , int [ ] localVarModifiers , char [ ] declaringTypeName ) { } private void buildCUSource ( ) { StringBuffer buffer = new StringBuffer ( ) ; if ( ( ( this . packageName ) != null ) && ( ( this . packageName . length ) != 0 ) ) { buffer . append ( "package<seq2seq4repair_space>" ) ; buffer . append ( this . packageName ) ; buffer . append ( ";" ) . append ( Util . LINE_SEPARATOR ) ; ( this . lineNumberOffset ) ++ ; } char [ ] [ ] imports = this . imports ; for ( int i = 0 ; i < ( imports . length ) ; i ++ ) { buffer . append ( "import<seq2seq4repair_space>" ) ; buffer . append ( imports [ i ] ) ; buffer . append ( ';' ) . append ( Util . LINE_SEPARATOR ) ; ( this . lineNumberOffset ) ++ ; } buffer . append ( "public<seq2seq4repair_space>class<seq2seq4repair_space>" ) ; buffer . append ( this . className ) ; if ( ( this . varClassName ) != null ) { buffer . append ( "<seq2seq4repair_space>extends<seq2seq4repair_space>" ) ; buffer . append ( this . varClassName ) ; } else { buffer . append ( "<seq2seq4repair_space>extends<seq2seq4repair_space>" ) ; buffer . append ( EvaluationConstants . PACKAGE_NAME ) ; buffer . append ( "." ) ; buffer . append ( EvaluationConstants . ROOT_CLASS_NAME ) ; } buffer . append ( "<seq2seq4repair_space>{" ) . append ( Util . LINE_SEPARATOR ) ; ( this . lineNumberOffset ) ++ ; if ( ( this . declaringTypeName ) != null ) { buffer . append ( "<seq2seq4repair_space>" ) ; buffer . append ( this . declaringTypeName ) ; buffer . append ( "<seq2seq4repair_space>" ) ; buffer . append ( EvaluationConstants . DELEGATE_THIS ) ; buffer . append ( ';' ) . append ( Util . LINE_SEPARATOR ) ; ( this . lineNumberOffset ) ++ ; } if ( ( localVarNames ) != null ) { for ( int i = 0 , max = localVarNames . length ; i < max ; i ++ ) { buffer . append ( "<seq2seq4repair_space>" ) ; buffer . append ( localVarTypeNames [ i ] ) ; buffer . append ( "<seq2seq4repair_space>" ) ; buffer . append ( EvaluationConstants . LOCAL_VAR_PREFIX ) ; buffer . append ( localVarNames [ i ] ) ; buffer . append ( ';' ) . append ( Util . LINE_SEPARATOR ) ; ( this . lineNumberOffset ) ++ ; } } buffer . append ( "public<seq2seq4repair_space>void<seq2seq4repair_space>run()<seq2seq4repair_space>throws<seq2seq4repair_space>Throwable<seq2seq4repair_space>{" ) . append ( Util . LINE_SEPARATOR ) ; ( this . lineNumberOffset ) ++ ; startPosOffset = buffer . length ( ) ; buffer . append ( codeSnippet ) ; <START_BUG> buffer . append ( '<seq2seq4repair_space>' ) . append ( Util . LINE_SEPARATOR ) . append ( '}' ) . append ( Util . LINE_SEPARATOR ) ; <END_BUG> buffer . append ( '}' ) . append ( Util . LINE_SEPARATOR ) ; int length = buffer . length ( ) ; this . cuSource = new char [ length ] ; buffer . getChars ( 0 , length , this . cuSource , 0 ) ; } public ICompletionRequestor getCompletionRequestor ( final ICompletionRequestor originalRequestor ) { } public char [ ] getCUSource ( ) { } public int getEvaluationType ( int lineNumber ) { } public char [ ] getImport ( int lineNumber ) { } public ISelectionRequestor getSelectionRequestor ( final ISelectionRequestor originalRequestor ) { } }

Fix:
buffer . append ( Util . LINE_SEPARATOR ) . append ( '}' ) . append ( Util . LINE_SEPARATOR ) ;