What steps will reproduce the problem? 1. Compile using JDK 1.5
What is the expected output? What do you see instead?
It should compile correctly, but there is a generics resolution issue in DefaultDispatch.
Comment #1
Posted on Jul 28, 2009 by Quick Rhino[ERROR] Type 'net.customware.gwt.dispatch.shared.Result' was not serializable and has no concrete serializable subtypes "Deferred binding failed for 'net.customware.gwt.dispatch.client.service.DispatchService'"
It's an error that happen when the class that implements Result interface doesnt' have a default constructor defined.
Comment #2
Posted on Jul 28, 2009 by Grumpy RhinoHi Gianluigi. I believe this is not actually an issue with this library. It's actually a built-in requirement for serializable classes that they have a default constructor of some sort, even if it's private. You'll note that in the example code in 'Getting Started', the Result and Action implementations have package-private default constructors. It's a GWT limitation, essentially.
Comment #3
Posted on Dec 3, 2009 by Happy BirdMy project used to compile just fine with JDK 1.5 (I need it for OSX) but after the latest snapshot (nov 30) I get this:
[INFO] Compilation failure /Volumes/Files/Projects/WiklanderConsulting/Sportborsen/repos/sportexchange/sportexchange-web/src/main/java/biz/wiklander/sportexchange/web/shared/rpc/GetGameResult.java:[3,-1] cannot access net.customware.gwt.dispatch.shared.Result bad class file: /Users/per/.m2/repository/net/customware/gwt/dispatch/gwt-dispatch/1.1.0-SNAPSHOT/gwt-dispatch-1.1.0-SNAPSHOT.jar(net/customware/gwt/dispatch/shared/Result.class) class file has wrong version 50.0, should be 49.0
/Volumes/Files/Projects/WiklanderConsulting/Sportborsen/repos/sportexchange/sportexchange-web/src/main/java/biz/wiklander/sportexchange/web/shared/rpc/GetGameResult.java:[3,-1] cannot access net.customware.gwt.dispatch.shared.Result bad class file: /Users/per/.m2/repository/net/customware/gwt/dispatch/gwt-dispatch/1.1.0-SNAPSHOT/gwt-dispatch-1.1.0-SNAPSHOT.jar(net/customware/gwt/dispatch/shared/Result.class) class file has wrong version 50.0, should be 49.0
I've never seen that before so I'm guessing you built the latest snapshot (nov 30) with 1.6? Am I correct?
Comment #4
Posted on Dec 3, 2009 by Happy BirdHmm, sorry If I hijacked this issue. I think it actually is about compiling gwt-dispatch and not a project that uses the lib. I'll create a new issue if you want me to.
Status: Accepted
Labels:
Type-Defect
Priority-Medium