Bug 49429 - error during build
Summary: error during build
Status: VERIFIED FIXED
Alias: None
Product: JDT
Classification: Eclipse Project
Component: Core (show other bugs)
Version: 3.0   Edit
Hardware: PC Windows XP
: P3 normal (vote)
Target Milestone: 3.0 M7   Edit
Assignee: Olivier Thomann CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2003-12-31 08:37 EST by Nikolay Metchev CLA
Modified: 2004-02-11 12:42 EST (History)
0 users

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Nikolay Metchev CLA 2003-12-31 08:37:49 EST
for M6

I am getting very many Java AST creation errors while I am typing. However in 
the error message it doesn't give the file that went wrong. It would be nice 
to have the filename that caused the AST creation to fail so that I can better 
report such errors. For now I only have the stack trace:
-----------------------------------------------------------
java.lang.IllegalArgumentException
at org.eclipse.jdt.core.dom.SingleVariableDeclaration.setModifiers
(SingleVariableDeclaration.java:156)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:994)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:626)
at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations
(ASTConverter.java:917)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1059)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:740)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1611)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:821)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:1752)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:673)
at org.eclipse.jdt.core.dom.ASTConverter.buildBodyDeclarations
(ASTConverter.java:243)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:182)
at org.eclipse.jdt.core.dom.ASTConverter.convert(ASTConverter.java:80)
at org.eclipse.jdt.core.dom.AST.parseCompilationUnit(AST.java:354)
at org.eclipse.jdt.core.dom.AST.parseCompilationUnit(AST.java:247)
at 
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartLis
tenerGroup.computeAST(SelectionListenerWithASTManager.java:106)
at 
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$PartLis
tenerGroup.calculateASTandInform(SelectionListenerWithASTManager.java:116)
at 
org.eclipse.jdt.internal.ui.viewsupport.SelectionListenerWithASTManager$1.run
(SelectionListenerWithASTManager.java:92)
at org.eclipse.core.internal.jobs.Worker.run(Worker.java:62)
-----------------------------------------------------------------------
Comment 1 Nikolay Metchev CLA 2003-12-31 10:41:08 EST
found a case
-------------------------------
package org.ninm.games.cardgames;

import java.util.EventListener;

public interface PlayerListner extends EventListener
{
   void playerJoined(final final Player player);
   void playerLeft(final Player player);
}
-------------------------------------------------------
Comment 2 Olivier Thomann CLA 2004-01-02 11:24:03 EST
I will investigate.
Comment 3 Olivier Thomann CLA 2004-01-02 13:46:02 EST
Fixed and released in HEAD.
Regression test added.
Comment 4 Frederic Fusier CLA 2004-02-11 12:42:31 EST
Verified for 3.0-M7 with build I200402102000.