Project: JDT
Bug 306504 [implementation] AFE in CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.createPositionFromProblem
Reported: 2010-03-19 07:32:52 | Status: resolved fixed

Build Identifier: I20100129-1300 Exception in thread "org.eclipse.jdt.internal.ui.text.JavaReconciler" org.eclipse.core.runtime.AssertionFailedException: assertion failed: at org.eclipse.core.runtime.Assert.isTrue(Assert.java:110) at org.eclipse.core.runtime.Assert.isTrue(Assert.java:96) at org.eclipse.jface.text.Position.<init>(Position.java:62) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.createPositionFromProblem(CompilationUnitDocumentProvider.java:540) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.reportProblems(CompilationUnitDocumentProvider.java:655) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.internalEndReporting(CompilationUnitDocumentProvider.java:617) at org.eclipse.jdt.internal.ui.javaeditor.CompilationUnitDocumentProvider$CompilationUnitAnnotationModel.endReportingSequence(CompilationUnitDocumentProvider.java:605) at org.eclipse.jdt.internal.ui.text.JavaCompositeReconcilingStrategy.initialReconcile(JavaCompositeReconcilingStrategy.java:135) at org.eclipse.jface.text.reconciler.MonoReconciler.initialProcess(MonoReconciler.java:105) at org.eclipse.jdt.internal.ui.text.JavaReconciler.initialProcess(JavaReconciler.java:398) at org.eclipse.jface.text.reconciler.AbstractReconciler$BackgroundThread.run(AbstractReconciler.java:173) Reproducible: Always Steps to Reproduce: One of the JDojo files probably generates an error for a DOM node with an illegal offset. I can reproduce locally, feel free to debug on my machine

Files changed in fix:
org.eclipse.jdt.ui/ui/org/eclipse/jdt/internal/ui/javaeditor/CompilationUnitDocumentProvider.java