Buggy code:
public class JavaBuilder extends IncrementalProjectBuilder { IProject currentProject ; JavaProject javaProject ; IWorkspaceRoot workspaceRoot ; NameEnvironment nameEnvironment ; SimpleLookupTable binaryLocationsPerProject ; State lastState ; BuildNotifier notifier ; char [ ] [ ] extraResourceFileFilters ; String [ ] extraResourceFolderFilters ; public static boolean DEBUG = false ; static ArrayList builtProjects = null ; public static IMarker [ ] getProblemsFor ( IResource resource ) { } public static IMarker [ ] getTasksFor ( IResource resource ) { } public static void buildStarting ( ) { } public static void buildFinished ( ) { } public static void removeProblemsFor ( IResource resource ) { } public static void removeTasksFor ( IResource resource ) { } public static void removeProblemsAndTasksFor ( IResource resource ) { } public static State readState ( IProject project , DataInputStream in ) throws IOException { } public static void writeState ( Object state , DataOutputStream out ) throws IOException { } protected IProject [ ] build ( int kind , Map ignored , IProgressMonitor monitor ) throws CoreException { this . currentProject = getProject ( ) ; if ( ( ( currentProject ) == null ) || ( ! ( currentProject . isAccessible ( ) ) ) ) return new IProject [ 0 ] ; if ( JavaBuilder . DEBUG ) System . out . println ( ( ( ( "\nStarting<seq2seq4repair_space>build<seq2seq4repair_space>of<seq2seq4repair_space>" + ( currentProject . getName ( ) ) ) + "<seq2seq4repair_space>@<seq2seq4repair_space>" ) + ( new Date ( System . currentTimeMillis ( ) ) ) ) ) ; this . notifier = new BuildNotifier ( monitor , currentProject ) ; notifier . begin ( ) ; boolean ok = false ; try { notifier . checkCancel ( ) ; initializeBuilder ( ) ; if ( isWorthBuilding ( ) ) { if ( kind == ( IncrementalProjectBuilder . FULL_BUILD ) ) { buildAll ( ) ; } else { if ( ( this . lastState = getLastState ( currentProject ) ) == null ) { if ( JavaBuilder . DEBUG ) System . out . println ( "Performing<seq2seq4repair_space>full<seq2seq4repair_space>build<seq2seq4repair_space>since<seq2seq4repair_space>last<seq2seq4repair_space>saved<seq2seq4repair_space>state<seq2seq4repair_space>was<seq2seq4repair_space>not<seq2seq4repair_space>found" ) ; buildAll ( ) ; } else if ( hasClasspathChanged ( ) ) { buildAll ( ) ; } else if ( ( nameEnvironment . sourceLocations . length ) > 0 ) { SimpleLookupTable deltas = findDeltas ( ) ; if ( deltas == null ) buildAll ( ) ; else if ( ( deltas . elementSize ) > 0 ) buildDeltas ( deltas ) ; else if ( JavaBuilder . DEBUG ) System . out . println ( "Nothing<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>since<seq2seq4repair_space>deltas<seq2seq4repair_space>were<seq2seq4repair_space>empty" ) ; } else { if ( hasStructuralDelta ( ) ) { buildAll ( ) ; } else { if ( JavaBuilder . DEBUG ) System . out . println ( "Nothing<seq2seq4repair_space>to<seq2seq4repair_space>build<seq2seq4repair_space>since<seq2seq4repair_space>there<seq2seq4repair_space>are<seq2seq4repair_space>no<seq2seq4repair_space>source<seq2seq4repair_space>folders<seq2seq4repair_space>and<seq2seq4repair_space>no<seq2seq4repair_space>deltas" ) ; lastState . tagAsNoopBuild ( ) ; } } } ok = true ; } } catch ( CoreException e ) { Util . log ( e , "JavaBuilder<seq2seq4repair_space>handling<seq2seq4repair_space>CoreException" ) ; IMarker marker = currentProject . createMarker ( IJavaModelMarker . JAVA_MODEL_PROBLEM_MARKER ) ; marker . setAttribute ( IMarker . MESSAGE , Util . bind ( "build.inconsistentProject" , e . getLocalizedMessage ( ) ) ) ; marker . setAttribute ( IMarker . SEVERITY , IMarker . SEVERITY_ERROR ) ; } catch ( ImageBuilderInternalException e ) { Util . log ( e . getThrowable ( ) , "JavaBuilder<seq2seq4repair_space>handling<seq2seq4repair_space>ImageBuilderInternalException" ) ; IMarker marker = currentProject . createMarker ( IJavaModelMarker . JAVA_MODEL_PROBLEM_MARKER ) ; <START_BUG> marker . setAttribute ( IMarker . MESSAGE , Util . bind ( "build.inconsistentProject" , e . coreException . getLocalizedMessage ( ) ) ) ; <END_BUG> marker . setAttribute ( IMarker . SEVERITY , IMarker . SEVERITY_ERROR ) ; } catch ( MissingClassFileException e ) { if ( JavaBuilder . DEBUG ) System . out . println ( Util . bind ( "build.incompleteClassPath" , e . missingClassFile ) ) ; IMarker marker = currentProject . createMarker ( IJavaModelMarker . JAVA_MODEL_PROBLEM_MARKER ) ; marker . setAttribute ( IMarker . MESSAGE , Util . bind ( "build.incompleteClassPath" , e . missingClassFile ) ) ; marker . setAttribute ( IMarker . SEVERITY , IMarker . SEVERITY_ERROR ) ; } catch ( MissingSourceFileException e ) { if ( JavaBuilder . DEBUG ) System . out . println ( Util . bind ( "build.missingSourceFile" , e . missingSourceFile ) ) ; JavaBuilder . removeProblemsAndTasksFor ( currentProject ) ; IMarker marker = currentProject . createMarker ( IJavaModelMarker . JAVA_MODEL_PROBLEM_MARKER ) ; marker . setAttribute ( IMarker . MESSAGE , Util . bind ( "build.missingSourceFile" , e . missingSourceFile ) ) ; marker . setAttribute ( IMarker . SEVERITY , IMarker . SEVERITY_ERROR ) ; } finally { if ( ! ok ) clearLastState ( ) ; notifier . done ( ) ; cleanup ( ) ; } IProject [ ] requiredProjects = getRequiredProjects ( true ) ; if ( JavaBuilder . DEBUG ) System . out . println ( ( ( ( "Finished<seq2seq4repair_space>build<seq2seq4repair_space>of<seq2seq4repair_space>" + ( currentProject . getName ( ) ) ) + "<seq2seq4repair_space>@<seq2seq4repair_space>" ) + ( new Date ( System . currentTimeMillis ( ) ) ) ) ) ; return requiredProjects ; } private void buildAll ( ) { } private void buildDeltas ( SimpleLookupTable deltas ) { } private void cleanup ( ) { } private void clearLastState ( ) { } boolean filterExtraResource ( IResource resource ) { } private SimpleLookupTable findDeltas ( ) { } public State getLastState ( IProject project ) { } private IProject [ ] getRequiredProjects ( boolean includeBinaryPrerequisites ) { } private boolean hasClasspathChanged ( ) { } private boolean hasStructuralDelta ( ) { } private void initializeBuilder ( ) throws CoreException { } private boolean isClasspathBroken ( IClasspathEntry [ ] classpath , IProject p ) throws CoreException { } private boolean isWorthBuilding ( ) throws CoreException { } void mustPropagateStructuralChanges ( ) { } private void recordNewState ( State state ) { } public String toString ( ) { } }

Fix:
marker . setAttribute ( IMarker . MESSAGE , Util . bind ( "build.inconsistentProject" , e . getLocalizedMessage ( ) ) ) ;