Closed GoogleCodeExporter closed 8 years ago
I have just tried to build pectin from source, after changing the GWT version
from 2.0.3 to 2.2.0 in the build.graddle file. Unfortunately, no success:
:gwt-pectin:testGwt
Running TestGwt task
Using -Dgwt.args="-web -out /Users/hbf/tmp/gwt-pectin/gwt-pectin/build/gwt/test
-gen /Users/hbf/tmp/gwt-pectin/gwt-pectin/build/gwt/gen"
Extracting dev mode libs to:
/Users/hbf/tmp/gwt-pectin/gwt-pectin/build/gwt/shellLibs
java .Compiling module com.pietschy.gwt.pectin.PectinTest.JUnit
java [ERROR] Errors in
'file:/Users/hbf/tmp/gwt-pectin/gwt-pectin/src/gwtTest/java/com/pietschy/gwt/pec
tin/client/bean/BeanModelProviderGeneralTest.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.pietschy.gwt.pectin.rebind.BeanModelProviderCreator.createPackageName(BeanMo
delProviderCreator.java:256)
java at
com.pietschy.gwt.pectin.rebind.BeanModelProviderCreator.createClassNameWithPacka
ge(BeanModelProviderCreator.java:289)
java at
com.pietschy.gwt.pectin.rebind.BeanModelProviderCreator.createProvider(BeanModel
ProviderCreator.java:59)
java at
com.pietschy.gwt.pectin.rebind.BeanModelProviderGenerator.generate(BeanModelProv
iderGenerator.java:35)
java at
com.google.gwt.core.ext.GeneratorExtWrapper.generate(GeneratorExtWrapper.java:48
)
java at
com.google.gwt.core.ext.GeneratorExtWrapper.generateIncrementally(GeneratorExtWr
apper.java:60)
java at
com.google.gwt.dev.javac.StandardGeneratorContext.runGeneratorIncrementally(Stan
dardGeneratorContext.java:662)
java at
com.google.gwt.dev.cfg.RuleGenerateWith.realize(RuleGenerateWith.java:41)
java at
com.google.gwt.dev.shell.StandardRebindOracle$Rebinder.rebind(StandardRebindOrac
le.java:74)
java at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:2
59)
java at
com.google.gwt.dev.shell.StandardRebindOracle.rebind(StandardRebindOracle.java:2
48)
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(AbstractCom
piler.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(AbstractCom
piler.java:175)
java at
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.compile(AbstractCom
piler.java:288)
java at
com.google.gwt.dev.jdt.AbstractCompiler$Sandbox$CompilerImpl.access$400(Abstract
Compiler.java:145)
java at
com.google.gwt.dev.jdt.AbstractCompiler.compile(AbstractCompiler.java:632)
java at
com.google.gwt.dev.jdt.BasicWebModeCompiler.getCompilationUnitDeclarations(Basic
WebModeCompiler.java:124)
java at
com.google.gwt.dev.jdt.WebModeCompilerFrontEnd.getCompilationUnitDeclarations(We
bModeCompilerFrontEnd.java:54)
java at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompi
ler.java:517)
java at
com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:35)
java at com.google.gwt.dev.Precompile.precompile(Precompile.java:541)
java at com.google.gwt.dev.Precompile.precompile(Precompile.java:495)
java at com.google.gwt.dev.Precompile.precompile(Precompile.java:407)
java at com.google.gwt.dev.Compiler.run(Compiler.java:215)
java at com.google.gwt.junit.JUnitShell.compileForWebMode(JUnitShell.java:1081)
java at
com.google.gwt.junit.JUnitShell.maybeCompileForWebMode(JUnitShell.java:1123)
java at
com.google.gwt.junit.CompileStrategy.maybeCompileModuleImpl2(CompileStrategy.jav
a:180)
java at
com.google.gwt.junit.CompileStrategy.maybeCompileModuleImpl(CompileStrategy.java
:112)
java at
com.google.gwt.junit.SimpleCompileStrategy.maybeCompileModule(SimpleCompileStrat
egy.java:36)
java at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1320)
java at com.google.gwt.junit.JUnitShell.runTestImpl(JUnitShell.java:1289)
java at com.google.gwt.junit.JUnitShell.runTest(JUnitShell.java:631)
java at com.google.gwt.junit.client.GWTTestCase.runTest(GWTTestCase.java:441)
java at junit.framework.TestCase.runBare(TestCase.java:134)
java at junit.framework.TestResult$1.protect(TestResult.java:110)
java at junit.framework.TestResult.runProtected(TestResult.java:128)
java at junit.framework.TestResult.run(TestResult.java:113)
java at junit.framework.TestCase.run(TestCase.java:124)
java at com.google.gwt.junit.client.GWTTestCase.run(GWTTestCase.java:296)
java at junit.framework.TestSuite.runTest(TestSuite.java:232)
java at junit.framework.TestSuite.run(TestSuite.java:227)
java at junit.framework.TestSuite.runTest(TestSuite.java:232)
java at junit.framework.TestSuite.run(TestSuite.java:227)
java at junit.framework.TestSuite.runTest(TestSuite.java:232)
java at junit.framework.TestSuite.run(TestSuite.java:227)
java at junit.textui.TestRunner.doRun(TestRunner.java:116)
java at junit.textui.TestRunner.start(TestRunner.java:180)
java at junit.textui.TestRunner.main(TestRunner.java:138)
Would appreciate any help!
Thanks,
Kaspar
Original comment by kaspar.f...@gtempaccount.com
on 28 Apr 2011 at 2:59
(The problem is, apparently, that "in GWT 2.2 JClassType has changed from an
abstract class to an interface and therefor is bytecode incompatible", see
http://code.google.com/p/gwt-platform/issues/detail?id=292 )
Original comment by kaspar.f...@gtempaccount.com
on 28 Apr 2011 at 3:16
1) this is a dup of http://code.google.com/p/gwt-pectin/issues/detail?id=40
2) i was able to successfully build pectin against 2.2 and I'm using it there
right now
Original comment by ata...@gmail.com
on 30 Apr 2011 at 7:47
This is indeed a dup and can be closed.
Original comment by kaspar.f...@gtempaccount.com
on 2 May 2011 at 8:58
@ata...@gmail.com: IIUC, the jar of pectin for GWT 2.2 is not yet available
officially (i.e., on this site). Could you provide the version you have
successfully compiled?
Original comment by kaspar.f...@gtempaccount.com
on 2 May 2011 at 9:00
I just had a look at getting this done but my gradle has died (I've been in
other languages and haven't fired it up for quite a while). Not sure when I'll
get a chance to look at it. I may have to upgrade to a later version of
gradle, which will involve upgrading the gwt plugin...
Cheers
Andrew
Original comment by andrew.pietsch
on 3 May 2011 at 4:48
Andrew, a shy call whether you might get a chance to provide a version for GWT
2.2? My experience with gradle is a bit too limited, I realize...
Original comment by kaspar.f...@dreizak.com
on 29 Jun 2011 at 5:16
Ok, I finally got around to doing this. Sorry for the huge delay.
The gradle issues occured because some software decided to put various log4j
libraries in my java/extentions dir. Once that was found I could rebuild
using gradle 0.8.
Let me know if you have any hassles.
Cheers
Original comment by andrew.pietsch
on 30 Jun 2011 at 1:04
Original issue reported on code.google.com by
kaspar.f...@gtempaccount.com
on 28 Apr 2011 at 2:28