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

On Sep 1, 12:06 am, Steve Storey <[EMAIL PROTECTED]> wrote:
> 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

--~--~---------~--~----~------------~-------~--~----~
You received this message because you are subscribed to the Google Groups 
"Google Web Toolkit" group.
To post to this group, send email to Google-Web-Toolkit@googlegroups.com
To unsubscribe from this group, send email to [EMAIL PROTECTED]
For more options, visit this group at 
http://groups.google.com/group/Google-Web-Toolkit?hl=en
-~----------~----~----~----~------~----~------~--~---

Reply via email to