Bug 200080 - Endless illegal arg exceptions from java editor's ASTProvider
Summary: Endless illegal arg exceptions from java editor's ASTProvider
Status: VERIFIED DUPLICATE of bug 199668
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.4   Edit
Hardware: PC Windows XP
: P3 critical (vote)
Target Milestone: 3.3.1   Edit
Assignee: JDT-Core-Inbox CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-08-15 14:42 EDT by Curtis Windatt CLA
Modified: 2007-10-29 08:29 EDT (History)
2 users (show)

See Also:


Attachments
Example file (40.15 KB, text/plain)
2007-08-15 14:46 EDT, Curtis Windatt CLA
no flags Details
Regression test (1.37 KB, patch)
2007-08-16 09:33 EDT, Jerome Lanneluc CLA
no flags Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Curtis Windatt CLA 2007-08-15 14:42:42 EDT
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)
Comment 1 Curtis Windatt CLA 2007-08-15 14:46:48 EDT
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.
Comment 2 Jerome Lanneluc CLA 2007-08-16 06:11:09 EDT

*** This bug has been marked as a duplicate of bug 199668 ***
Comment 3 Jerome Lanneluc CLA 2007-08-16 09:33:28 EDT
Created attachment 76221 [details]
Regression test
Comment 4 Jerome Lanneluc CLA 2007-08-16 10:57:55 EDT
Regression test released in HEAD.
Comment 5 Jerome Lanneluc CLA 2007-10-29 08:26:30 EDT
Verified for 3.4M3 using I20071029-0010
Comment 6 Jerome Lanneluc CLA 2007-10-29 08:29:45 EDT
Verified for 3.3.1 using M20070913-1500