Does using the compiler flag:
Am Freitag, 29. Juli 2016 16:26:14 UTC+2 schrieb Thomas Broyer:
-- -setProperty gin.classloading.exceptedPackages=com.google.gwt.core.client, com.google.gwt.core.client.impl
as mentioned in the workaround solve this issue.
Am Freitag, 29. Juli 2016 16:26:14 UTC+2 schrieb Thomas Broyer:
On Friday, July 29, 2016 at 1:41:33 PM UTC+2, kimi wrote:ok, didn"t know gin work with jdk7, just saw this in the release note :https://github.com/i'm on jdk7, guava18 and gin 2.gwtproject/gwt/issues/9311 The thing with GIN is that it uses a custom ClassLoader to be able to "read" super-source classes, and code generated by GWT generators, and that custom classloader reads bytecode generated by the GWT Compiler, which in 2.8.0-rc1 will always generate Java 8 bytecode, so it'll fail in a Java 7 VM. This is why I said that it would be Java 7 that blocks you rather than GIN.If you can move to Dagger 2, then IMO you should do it anyway (missing features: assisted inject –can be replaced with Google AutoFactory–, private modules, and static injection); and if you used GinModuleAdapter, you can move to Guice's DaggerAdapter.FWIW, our project at work still compiles with JDK 7 and GIN 1.5.0; I just updated GWT to 2.8.0-rc1 and Guava to 20.0-SNAPSHOT (note: I haven't tested SuperDevMode yet, but I'm rather confident)If I update to GIN 2.1.2 (which uses its custom classloader), than it fails with:[INFO] Caused by: java.lang.UnsupportedClassVersionError: xxx/xxx/xxx/XxxGinjector : Unsupported major.minor version 52.0
You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit+unsubscribe@googlegroups.com.
To post to this group, send email to google-web-toolkit@googlegroups.com.
Visit this group at https://groups.google.com/group/google-web-toolkit.
For more options, visit https://groups.google.com/d/optout.
No comments:
Post a Comment