datni / gwt-pectin

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

Unable to <inherit> with Eclipse #12

Closed GoogleCodeExporter closed 8 years ago

GoogleCodeExporter commented 8 years ago
I've tried adding gwt-pectin to my project under Eclipse both by including the 
JAR in the build path and using the gwt-
pectin source code.  I have added the <inherits> line to my module definition.  
When I go to compile my project, I receive 
the following:

Compiling module com.nobody.techtest.TechTest
   Resolving com.pietschy.gwt.pectin.client.components.AbstractDynamicList.Row
      Found type 'com.pietschy.gwt.pectin.client.components.AbstractDynamicList'
         [ERROR] Unable to resolve inner class Row in com.pietschy.gwt.pectin.client.components.AbstractDynamicList[]
com.google.gwt.core.ext.typeinfo.NotFoundException
    at com.google.gwt.core.ext.typeinfo.JArrayType.getNestedType(JArrayType.java:147)
    at com.google.gwt.dev.javac.asm.ResolveTypeSignature.visitInnerClassType(ResolveTypeSignature.java:171)
    at com.google.gwt.dev.asm.signature.SignatureReader.parseType(SignatureReader.java:182)
    at com.google.gwt.dev.asm.signature.SignatureReader.parseType(SignatureReader.java:164)
    at com.google.gwt.dev.asm.signature.SignatureReader.accept(SignatureReader.java:100)
    at com.google.gwt.dev.javac.TypeOracleMediator.resolveMethod(TypeOracleMediator.java:972)
    at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:767)
    at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:792)
    at com.google.gwt.dev.javac.TypeOracleMediator.resolveClass(TypeOracleMediator.java:698)
    at com.google.gwt.dev.javac.TypeOracleMediator.addNewUnits(TypeOracleMediator.java:353)
    at com.google.gwt.dev.javac.CompilationState.assimilateUnits(CompilationState.java:135)
    at com.google.gwt.dev.javac.CompilationState.<init>(CompilationState.java:79)
    at com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:284)
    at com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:181)
    at com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:280)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:502)
    at com.google.gwt.dev.Precompile.precompile(Precompile.java:414)
    at com.google.gwt.dev.Compiler.run(Compiler.java:201)
    at com.google.gwt.dev.Compiler$1.run(Compiler.java:152)
    at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:87)
    at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:81)
    at com.google.gwt.dev.Compiler.main(Compiler.java:159)

I went spelunking in the code and found that Row is defined just fine.  Have 
you (or anyone) successfully used this with 
GWT 2.0?  I'm trying to build on Windows (ugh) using Eclipse Galileo with the 
GWT plugin installed.

Original issue reported on code.google.com by scott.du...@gmail.com on 13 Jan 2010 at 8:55

GoogleCodeExporter commented 8 years ago
Hi there,

It seems GWT 2 has problems with the var-arg method signatures (see issue 10).  
It's
been fixed in svn and I hope to a new release in the next few days.

cheers
Andrew

Original comment by andrew.pietsch on 14 Jan 2010 at 4:48

GoogleCodeExporter commented 8 years ago
Version 0.5 has been released with a fix for this problem.

Original comment by andrew.pietsch on 14 Jan 2010 at 10:58

GoogleCodeExporter commented 8 years ago
Fantastic!  Thanks!

Original comment by scott.du...@gmail.com on 15 Jan 2010 at 3:05

GoogleCodeExporter commented 8 years ago
Howdy, just wondering if the fix worked for you.  I was unable to reproduce the 
error
in the pectin build environment, but I'm seeing it in another project (and I'm 
not
sure why).

Cheers
Andrew 

Original comment by andrew.pietsch on 16 Jan 2010 at 11:40

GoogleCodeExporter commented 8 years ago
My project compiles clean with pectin included in it now.  I haven't actually 
wired
up any of pectin's features yet, but whatever you changed made the compiler 
happy.

Original comment by scott.du...@gmail.com on 17 Jan 2010 at 12:20

GoogleCodeExporter commented 8 years ago
Thanks for that.  In the end I found the issue, my other project had an old 
version
lurking on the classpath.

Original comment by andrew.pietsch on 17 Jan 2010 at 12:36