Internal compiler error with 1.5.2

12 views
Skip to first unread message

Steve Storey

unread,
Aug 31, 2008, 12:06:55 PM8/31/08
to Google Web Toolkit
Hi,

I've just upgraded from 1.4.60 to 1.5.2 and am now getting an internal
compiler error with my code:

[java] Compiling permutations
[java] Analyzing permutation #1
[java] [ERROR] An internal compiler exception occurred
[java] com.google.gwt.dev.jjs.InternalCompilerException: Error
constructing Java AST
[java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.translateException(GenerateJavaAST.java:
2325)
.
.
.
[java] Caused by: java.lang.NoSuchMethodError:
com.google.gwt.dev.jjs.ast.JClassLiteral.<init>(Lcom/google/gwt/dev/
jjs/ast/JProgram;Lcom/google/gwt/dev/jjs/ast/JType;)V
[java] at
com.google.gwt.dev.jjs.ast.JProgram.getLiteralClass(JProgram.java:501)
[java] at
com.google.gwt.dev.jjs.ast.JNewArray.createDims(JNewArray.java:44)
[java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.processExpression(GenerateJavaAST.java:800)
[java] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native
Method)
[java] at
sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:
39)
[java] at
sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:
25)
[java] at java.lang.reflect.Method.invoke(Method.java:597)
[java] at com.google.gwt.dev.jjs.impl.GenerateJavaAST
$JavaASTGenerationVisitor.dispatch(GenerateJavaAST.java:429)
[java] ... 18 more
[java] [ERROR] at Animation.java(49): new
Animation[animations.size()]
[java]
org.eclipse.jdt.internal.compiler.ast.ArrayAllocationExpression
[java] [ERROR] at Animation.java(49): Animation[]
curAnimations = new Animation[animations.size()];
[java]
org.eclipse.jdt.internal.compiler.ast.LocalDeclaration
[java] [ERROR] at Animation.java(47): private static
void updateAnimations();
[java]
[java] com.google.gwt.dev.jjs.ast.JMethod
[java] [ERROR] at Animation.java(28): abstract class
Animation extends Object
[java] com.google.gwt.dev.jjs.ast.JClassType
[java] [ERROR] Build failed
[java] Java Result: 1

Now I have narrowed this down so that it looks like it's something in
the rocket-gwt (0.53) lib that's causing the issue as removing that
library solves the problem. However I'm reporting it here (as well as
Rocket) as a NoSuchMethodError shouldn't really happen at all in the
compiler?

Steve

mP

unread,
Aug 31, 2008, 7:09:32 PM8/31/08
to Google Web Toolkit
Without looking at the problem i would say that the rocket problem is
because I made a few slight changes to the compiler for my own evil
purposes.

This is not a GWT problem so dont worry about it- steve i will look at
it and get back to you.

Steve Storey

unread,
Sep 1, 2008, 9:41:24 AM9/1/08
to Google Web Toolkit
OK - thanks Miroslav

xoferiF

unread,
Sep 2, 2008, 12:43:05 AM9/2/08
to Google Web Toolkit
Hi,

I faced a similar problem as yours. My solution is extract the
rocket.jar and rocket-stacktrace.jar into 'rocket' directory, then
delete the 'com' directory which contains a rocket-specific
GWTCompiler (I think), then include this 'rocket' directory to your
compile classpath, and the error is gone...

Hope this works for you.

Kevin
Reply all
Reply to author
Forward
0 new messages