Community
Participate
Working Groups
I do not know how my workspace/file got into this state, but now, whenever I have an editor open on InternalTreeModelViewer.java, errors keep on showing up in my log (several per second). I have had lots of files open in the workspace. InternalTreeModelViewer has several compilation errors in it as well as several TODO tags. Whenever focus is in the editor, errors appear. If I change focus to another view or another file, the errors stop. I have tried closing and reopening the file and restarting Eclipse. Neither were successful. I can attach the file in its current state if that will help. The errors appear to be identical, but I can attach a full log if necessary. eclipse.buildId=I20070809-1105 java.version=1.5.0_09 java.vendor=Sun Microsystems Inc. BootLoader constants: OS=win32, ARCH=x86, WS=win32, NL=en_US Command-line arguments: -os win32 -ws win32 -arch x86 Error Wed Aug 15 13:31:57 CDT 2007 Problems occurred when invoking code from plug-in: "org.eclipse.jdt.ui". java.lang.IllegalArgumentException at org.eclipse.jdt.core.dom.ASTNode.setSourceRange(ASTNode.java:2609) at org.eclipse.jdt.core.dom.ASTConverter.convertToVariableDeclarationFragment(ASTConverter.java:3012) at org.eclipse.jdt.core.dom.ASTConverter.checkAndAddMultipleLocalDeclaration(ASTConverter.java:389) at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:509) at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations(ASTConverter.java:179) at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:2661) at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1248) at org.eclipse.jdt.core.dom.CompilationUnitResolver.convert(CompilationUnitResolver.java:255) at org.eclipse.jdt.core.dom.ASTParser.internalCreateAST(ASTParser.java:892) at org.eclipse.jdt.core.dom.ASTParser.createAST(ASTParser.java:651) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider$1.run(ASTProvider.java:609) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.createAST(ASTProvider.java:602) at org.eclipse.jdt.internal.ui.javaeditor.ASTProvider.getAST(ASTProvider.java:514) at org.eclipse.jdt.ui.OverrideIndicatorLabelDecorator.getOverrideIndicators(OverrideIndicatorLabelDecorator.java:152) at org.eclipse.jdt.ui.OverrideIndicatorLabelDecorator.computeAdornmentFlags(OverrideIndicatorLabelDecorator.java:129) at org.eclipse.jdt.ui.OverrideIndicatorLabelDecorator.decorate(OverrideIndicatorLabelDecorator.java:261) at org.eclipse.ui.internal.decorators.LightweightDecoratorDefinition.decorate(LightweightDecoratorDefinition.java:259) at org.eclipse.ui.internal.decorators.LightweightDecoratorManager$LightweightRunnable.run(LightweightDecoratorManager.java:71) at org.eclipse.core.runtime.SafeRunner.run(SafeRunner.java:37) at org.eclipse.core.runtime.Platform.run(Platform.java:857) at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.decorate(LightweightDecoratorManager.java:336) at org.eclipse.ui.internal.decorators.LightweightDecoratorManager.getDecorations(LightweightDecoratorManager.java:322) at org.eclipse.ui.internal.decorators.DecorationScheduler$1.ensureResultCached(DecorationScheduler.java:369) at org.eclipse.ui.internal.decorators.DecorationScheduler$1.run(DecorationScheduler.java:329) at org.eclipse.core.internal.jobs.Worker.run(Worker.java:55)
Created attachment 76140 [details] Example file If I copy the text out of the file causing problems and paste it into a different file, the errors start appearing. Contents of the file are attached.
*** This bug has been marked as a duplicate of bug 199668 ***
Created attachment 76221 [details] Regression test
Regression test released in HEAD.
Verified for 3.4M3 using I20071029-0010
Verified for 3.3.1 using M20070913-1500