Hi everyone,
For the markers I get from an IProject using
project.findMarkers(IJavaModelMarker.JAVA_MODEL_PROBLEM_MARKER, true, IResource.DEPTH_INFINITE);
I am trying to invoke IMarker.getType(), however for some of these markers, I get the following exception:
Marker id 11139 not found.
org.eclipse.core.internal.resources.Marker.checkInfo(Marker.java:57)
org.eclipse.core.internal.resources.Marker.getType(Marker.java:195)
edu.washington.cs.util.eclipse.model.CompilationError.convertMarkerToProblemLocation(CompilationError.java:113)
edu.washington.cs.util.eclipse.model.CompilationError.<init>(CompilationError.java:36)
edu.washington.cs.quickfix.speculation.calc.SpeculationCalculator.processCompilationError(SpeculationCalculator.java:574)
edu.washington.cs.quickfix.speculation.calc.SpeculationCalculator.doSpeculativeAnalysis(SpeculationCalculator.java:506)
edu.washington.cs.quickfix.speculation.calc.SpeculationCalculator.doWork(SpeculationCalculator.java:445)
edu.washington.cs.threading.MortalThread.run(MortalThread.java:88)
I guess the exception is quite clear, however I want to learn what would make the markers not exist anymore (though I don't change anything in the program)? Any guesses?
Thanks,