Compile error with latest gwt (from trunk)

83 views
Skip to first unread message

Stefano Pulze

unread,
Feb 3, 2015, 6:09:12 AM2/3/15
to google-web-tool...@googlegroups.com
Hi folks,

Today I've updated and build latest gwt from trunk.
I've tried to compile my project but the compilar said:

Caused by: java.lang.NoSuchMethodError: com.google.gwt.dev.jjs.ast.JThisRef.getClassType()Lcom/google/gwt/dev/jjs/ast/JClassType;
 at com
.google.gwt.dev.jjs.impl.CloneExpressionVisitor.visit(CloneExpressionVisitor.java:317)
 at com
.google.gwt.dev.jjs.ast.JThisRef.traverse(JThisRef.java:48)
 at com
.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:127)
 
... 54 more
     
[ERROR] at Enum.java(109): this
         com
.google.gwt.dev.jjs.ast.JThisRef
     
[ERROR] at Object.java(79): this$static
         com
.google.gwt.dev.jjs.ast.JParameterRef
     
[ERROR] at Object.java(79): Impl.getHashCode(this$static)
         com
.google.gwt.dev.jjs.ast.JMethodCall
     
[ERROR] at Enum.java(109): Object.$hashCode(this)
         com
.google.gwt.dev.jjs.ast.JMethodCall
     
[ERROR] at Enum.java(109): return Object.$hashCode(this)
         com
.google.gwt.dev.jjs.ast.JReturnStatement
     
[ERROR] at Enum.java(108): {
 
return Object.$hashCode(this);
}
         com
.google.gwt.dev.jjs.ast.JBlock
     
[ERROR] at Enum.java(108): {
 
return Object.$hashCode(this);
}
         com
.google.gwt.dev.jjs.ast.JMethodBody
     
[ERROR] at Enum.java(108): public final int hashCode();
         com
.google.gwt.dev.jjs.ast.JMethod


Is my fault?
The same project with gwt 2.7.0 work fine.

Thanks in advanced

Daniel Kurka

unread,
Feb 3, 2015, 6:42:05 AM2/3/15
to google-web-tool...@googlegroups.com
Are you sure that there is not another version of GWT somewhere in the classpath?

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-co...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/ead534db-45c4-4f7f-af21-5642b440d95b%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.



--
Google Germany GmbH
Dienerstr. 12
80331 München

Registergericht und -nummer: Hamburg, HRB 86891
Sitz der Gesellschaft: Hamburg
Geschäftsführer: Graham Law, Katherine Stephens

Jens

unread,
Feb 3, 2015, 6:50:02 AM2/3/15
to google-web-tool...@googlegroups.com
On 15.11.2014 a commit from Ray changed JThisRef.getClassType() to return a JDeclaredType and not a JClassType.

Your GWT searches for this method with return type JClassType. Seems like you have not correctly updated your dependencies and an old GWT is on class path as well.

-- J.


Lars

unread,
Feb 3, 2015, 7:46:37 AM2/3/15
to google-web-tool...@googlegroups.com
Did you update the (gwt)tools too?

Stefano Pulze

unread,
Feb 3, 2015, 9:35:38 AM2/3/15
to google-web-tool...@googlegroups.com
I'm sure that have the latest trunk and tools folder.
This is my build path, and I've only one GWT-SDK



Stefano Pulze

unread,
Feb 3, 2015, 11:15:45 AM2/3/15
to google-web-tool...@googlegroups.com
OK guys,

I've run:

ant clean
ant build

and now work like a charm.

Thanks all.


Reply all
Reply to author
Forward
0 new messages