Saturday, December 1, 2012

Re: GWT 2.5 RC1 issue -- com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.

I've written up an issue: https://code.google.com/p/google-web-toolkit/issues/detail?id=7824.  I tried to use Wiki syntax without success.  :)

Thanks,
Bryant

On Friday, November 30, 2012 12:27:55 PM UTC-7, Thomas Broyer wrote:
There was a similar question today on StackOverflow: http://stackoverflow.com/q/13641849/116472
The problem was a method with the same name as the class, apparently GWT confused it with a constructor.

On Friday, November 30, 2012 7:20:14 PM UTC+1, Eugene Ivlev wrote:
I have the same problem after switching to gwt 2.5.0 from 2.4.0. Do you have any solution?

пятница, 5 октября 2012 г., 17:30:55 UTC+3 пользователь bkc написал:
Bump -- the problem still happens in GWT 2.5 RC2.

On Saturday, July 7, 2012 8:27:53 AM UTC-7, bkc wrote:
Here is the relevant output from the gwtc target in ant with -logLevel set to ALL.  I am using SmartGWT 3.0 (the current latest release); the error below suggests an incompatibility between the GWT 2.5 RC1 compiler and SmartGWT 3.0 (everything compiles fine with GWT 2.4).  Please let me know how I can be of further assistance.

     [java]       Resolving com.smartgwt.client.i18n.SmartGwtMessages_
     [java]          Found type 'com.smartgwt.client.i18n.SmartGwtMessages_'
     [java]    [ERROR] An internal compiler exception occurred
     [java] com.google.gwt.dev.jjs.InternalCompilerException: Unexpected error during visit.
     [java] at com.google.gwt.dev.jjs.ast.JVisitor.translateException(JVisitor.java:109)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:276)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
     [java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:116)
     [java] at com.google.gwt.dev.jjs.ast.JDeclarationStatement.traverse(JDeclarationStatement.java:48)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor$ListContextImmutable.traverse(JModVisitor.java:170)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.acceptWithInsertRemoveImmutable(JModVisitor.java:336)
     [java] at com.google.gwt.dev.jjs.ast.JBlock.traverse(JBlock.java:83)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:137)
     [java] at com.google.gwt.dev.jjs.ast.JVisitor.accept(JVisitor.java:133)
     [java] at com.google.gwt.dev.jjs.ast.JMethodBody.traverse(JMethodBody.java:82)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
     [java] at com.google.gwt.dev.jjs.ast.JMethod.visitChildren(JMethod.java:426)
     [java] at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:395)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:265)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst.mainLoop(UnifyAst.java:902)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst.exec(UnifyAst.java:627)
     [java] at com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.precompile(JavaToJavaScriptCompiler.java:604)
     [java] at com.google.gwt.dev.jjs.JavaScriptCompiler.precompile(JavaScriptCompiler.java:33)
     [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:278)
     [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:229)
     [java] at com.google.gwt.dev.Precompile.precompile(Precompile.java:141)
     [java] at com.google.gwt.dev.Compiler.run(Compiler.java:232)
     [java] at com.google.gwt.dev.Compiler.run(Compiler.java:198)
     [java] at com.google.gwt.dev.Compiler$1.run(Compiler.java:170)
     [java] at com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:88)
     [java] at com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:82)
     [java] at com.google.gwt.dev.Compiler.main(Compiler.java:177)
     [java] Caused by: java.lang.ClassCastException: com.google.gwt.dev.jjs.ast.JMethod cannot be cast to com.google.gwt.dev.jjs.ast.JConstructor
     [java] at com.google.gwt.dev.jjs.ast.JNewInstance.getTarget(JNewInstance.java:56)
     [java] at com.google.gwt.dev.jjs.impl.UnifyAst$UnifyVisitor.endVisit(UnifyAst.java:275)
     [java] at com.google.gwt.dev.jjs.ast.JNewInstance.traverse(JNewInstance.java:86)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.traverse(JModVisitor.java:361)
     [java] at com.google.gwt.dev.jjs.ast.JModVisitor.accept(JModVisitor.java:273)
     [java] ... 32 more
     [java]       [ERROR] at Main.java(131): <source info not available>
     [java]          com.google.gwt.dev.jjs.ast.JNewInstance
     [java]       [ERROR] at Main.java(131): <source info not available>
     [java]          com.google.gwt.dev.jjs.ast.JDeclarationStatement
     [java]       [ERROR] at Main.java(103): <source info not available>
     [java]          com.google.gwt.dev.jjs.ast.JBlock
     [java]       [ERROR] at Main.java(103): <source info not available>
     [java]          com.google.gwt.dev.jjs.ast.JMethodBody
     [java]       [ERROR] at Main.java(103): private static final void $clinit();
     [java] 
     [java]          com.google.gwt.dev.jjs.ast.JMethod
     [java] Shutting down PersistentUnitCache thread

Thanks,
Bryant

--
You received this message because you are subscribed to the Google Groups "Google Web Toolkit" group.
To view this discussion on the web visit https://groups.google.com/d/msg/google-web-toolkit/-/YjMcHABbUaEJ.
To post to this group, send email to google-web-toolkit@googlegroups.com.
To unsubscribe from this group, send email to google-web-toolkit+unsubscribe@googlegroups.com.
For more options, visit this group at http://groups.google.com/group/google-web-toolkit?hl=en.

No comments:

Post a Comment