Owd-Larrd / gwt-google-apis

Automatically exported from code.google.com/p/gwt-google-apis
0 stars 0 forks source link

Breaking changes in GWT svn 9401 for gwt-maps (probably other libraries as well). #438

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
I tried to build my project with  gwt-maps-1.1.0 and gwt svn 9401. It fails 
miserably with this message:
     [java]    [ERROR] Errors in 'jar:file:/data/Development/idea/dostava/trunk/lib/gwt-maps/gwt-maps.jar!/com/google/gwt/maps/client/impl/JsUtil.java'
     [java]       [ERROR]  Internal compiler error
     [java] java.lang.IncompatibleClassChangeError: Found interface com.google.gwt.core.ext.typeinfo.JClassType, but class was expected
     [java]     at com.google.gwt.maps.jsio.rebind.JSWrapperGenerator.generate(JSWrapperGenerator.java:277)
     [java]     at com.google.gwt.dev.javac.StandardGeneratorContext.runGenerator(StandardGeneratorContext.java:427)
     [java]     at com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:39)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.tryRebind(StandardRebindOracle.java:115)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOracle.java:58)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:161)
     [java]     at com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:150)
     [java]     at com.google.gwt.dev.DistillerRebindPermutationOracle.getAllPossibleRebindAnswers(DistillerRebindPermutationOracle.java:91)
     [java]     at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.doFindAdditionalTypesUsingRebinds(WebModeCompilerFrontEnd.java:106)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.process(AbstractCompiler.java:254)
     [java]     at org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:444)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:175)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCompiler.java:288)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(AbstractCompiler.java:145)
     [java]     at com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
     [java]     at com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(BasicWebModeCompiler.java:124)
     [java]     at com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(WebModeCompilerFrontEnd.java:54)
     [java]     at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:517)
     [java]     at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:533)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:487)
     [java]     at com.google.gwt.dev.Precompile.precompile(Precompile.java:399)
     [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:215)
     [java]     at com.google.gwt.dev.Compiler.run(Compiler.java:187)
     [java]     at com.google.gwt.dev.Compiler$1.run(Compiler.java:159)
     [java]     at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
     [java]     at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
     [java]     at com.google.gwt.dev.Compiler.main(Compiler.java:166)

Does anybody else have the same issue?

Original issue reported on code.google.com by dilbert....@gmail.com on 13 Dec 2010 at 10:26

GoogleCodeExporter commented 9 years ago
You are right, the trunk of GWT introduces a binary incompatibility for any 
library that uses generators.  It won't be released until the next major 
release of GWT.

For now, there are no source incompatibilities.  The workaround is to recompile 
your library from source.

Original comment by zundel@google.com on 13 Dec 2010 at 1:33

GoogleCodeExporter commented 9 years ago
GWT version 2.1.1 is out. Will You release a new version of gwt-maps?

Original comment by dilbert....@gmail.com on 20 Dec 2010 at 10:33

GoogleCodeExporter commented 9 years ago
GWT 2.1.1 should still be binary compatible with the released version of 
gwt-maps. Please let me know if you have trouble building gwt-maps against the 
released gwt-2.1.1 binary distribution at 
http://code.google.com/webtoolkit/download.html

If you want to use the GWT trunk that has the binary incompatibility, all you 
need to do is download the gwt-maps source code and compile it as described 
here:

http://code.google.com/p/gwt-google-apis/wiki/MakingGALGWTBetter

Original comment by zundel@google.com on 20 Dec 2010 at 11:31