Buggy code:
class CodeSnippetToCuMapper implements EvaluationConstants { public char [ ] cuSource ; public int lineNumberOffset = 0 ; public int startPosOffset = 0 ; char [ ] codeSnippet ; char [ ] snippetPackageName ; char [ ] [ ] snippetImports ; char [ ] snippetClassName ; char [ ] snippetVarClassName ; char [ ] snippetDeclaringTypeName ; char [ ] [ ] localVarNames ; char [ ] [ ] localVarTypeNames ; int [ ] localVarModifiers ; public CodeSnippetToCuMapper ( char [ ] codeSnippet , char [ ] packageName , char [ ] [ ] imports , char [ ] className , char [ ] varClassName , char [ ] [ ] localVarNames , char [ ] [ ] localVarTypeNames , int [ ] localVarModifiers , char [ ] declaringTypeName , String lineSeparator ) { } private void buildCUSource ( String lineSeparator ) { } public CompletionRequestor getCompletionRequestor ( final CompletionRequestor originalRequestor ) { } public char [ ] getCUSource ( String lineSeparator ) { } public int getEvaluationType ( int lineNumber ) { } public char [ ] getImport ( int lineNumber ) { } public ISelectionRequestor getSelectionRequestor ( final ISelectionRequestor originalRequestor ) { return new ISelectionRequestor ( ) { public void acceptType ( char [ ] packageName , char [ ] typeName , int modifiers , boolean isDeclaration , char [ ] uniqueKey , int start , int end ) { originalRequestor . acceptType ( packageName , typeName , modifiers , isDeclaration , uniqueKey , start , end ) ; } <START_BUG> public void acceptError ( IProblem error ) { <END_BUG> error . setSourceLineNumber ( ( ( error . getSourceLineNumber ( ) ) - ( CodeSnippetToCuMapper . this . lineNumberOffset ) ) ) ; error . setSourceStart ( ( ( error . getSourceStart ( ) ) - ( CodeSnippetToCuMapper . this . startPosOffset ) ) ) ; error . setSourceEnd ( ( ( error . getSourceEnd ( ) ) - ( CodeSnippetToCuMapper . this . startPosOffset ) ) ) ; originalRequestor . acceptError ( error ) ; } public void acceptField ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] name , boolean isDeclaration , char [ ] uniqueKey , int start , int end ) { originalRequestor . acceptField ( declaringTypePackageName , declaringTypeName , name , isDeclaration , uniqueKey , start , end ) ; } public void acceptMethod ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , String enclosingDeclaringTypeSignature , char [ ] selector , char [ ] [ ] parameterPackageNames , char [ ] [ ] parameterTypeNames , String [ ] parameterSignatures , boolean isConstructor , boolean isDeclaration , char [ ] uniqueKey , int start , int end ) { originalRequestor . acceptMethod ( declaringTypePackageName , declaringTypeName , enclosingDeclaringTypeSignature , selector , parameterPackageNames , parameterTypeNames , parameterSignatures , isConstructor , isDeclaration , uniqueKey , start , end ) ; } public void acceptPackage ( char [ ] packageName ) { originalRequestor . acceptPackage ( packageName ) ; } public void acceptTypeParameter ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] typeParameterName , boolean isDeclaration , int start , int end ) { originalRequestor . acceptTypeParameter ( declaringTypePackageName , declaringTypeName , typeParameterName , isDeclaration , start , end ) ; } public void acceptMethodTypeParameter ( char [ ] declaringTypePackageName , char [ ] declaringTypeName , char [ ] selector , int selectorStart , int selectorEnd , char [ ] typeParameterName , boolean isDeclaration , int start , int end ) { originalRequestor . acceptMethodTypeParameter ( declaringTypePackageName , declaringTypeName , selector , selectorStart , selectorEnd , typeParameterName , isDeclaration , start , end ) ; } } ; } }

Fix:
public void acceptError ( CategorizedProblem error ) {