Compiler error: "Unexpected operator for unary expression"

307 views
Skip to first unread message

Axel Kramer

unread,
Aug 15, 2006, 5:04:33 PM8/15/06
to Google Web Toolkit
Hello

After changing a lot of my code today and running tests in "hosted
mode" working fine,
I tried to compile with the 1.1.0 compiler and get the following stack
trace.

Anyone has an idea why this happens?

C:\>C:\eclipse32rc\workspace\info.bliki.wiki\Wi
ki-compile.cmd
Output will be written into
C:\eclipse32rc\workspace\info.bliki.wiki\www\info.bl
iki.wiki.Wiki
Analyzing permutation #1
[ERROR] Unexpected internal compiler error
com.google.gwt.dev.jjs.impl.InternalCompilerException: Error during
dispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processMethod(GenerateJavaAST.java:1094)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processType(GenerateJavaAST.java:253)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST.exec(GenerateJavaAST.java
:1814)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScr
iptCompiler.java:267)
at
com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java:59
0)
at
com.google.gwt.dev.GWTCompiler.compilePermutations(GWTCompiler.java:3
38)
at com.google.gwt.dev.GWTCompiler.distill(GWTCompiler.java:287)
at com.google.gwt.dev.GWTCompiler.run(GWTCompiler.java:621)
at com.google.gwt.dev.GWTCompiler.main(GWTCompiler.java:189)
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1172)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1311)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 10 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1342)
at sun.reflect.GeneratedMethodAccessor32.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 17 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1172)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 23 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatements(GenerateJavaAST.java:1351)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1294)
at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 29 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1254)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 36 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1172)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 42 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1172)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1311)
at sun.reflect.GeneratedMethodAccessor37.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 48 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatements(GenerateJavaAST.java:1351)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1294)
at sun.reflect.GeneratedMethodAccessor39.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 55 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1254)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 62 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1172)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 68 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1254)
at sun.reflect.GeneratedMethodAccessor9.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 74 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessStatement(GenerateJavaAST.java:318)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1172)
at sun.reflect.GeneratedMethodAccessor14.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 80 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessExpression(GenerateJavaAST.java:304)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processStatement(GenerateJavaAST.java:1271)
at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 86 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessExpression(GenerateJavaAST.java:304)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processExpression(GenerateJavaAST.java:827)
at sun.reflect.GeneratedMethodAccessor6.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 92 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException: Error
during d
ispatch
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:286)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispProcessExpression(GenerateJavaAST.java:304)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processBinaryOperation(GenerateJavaAST.java:1744)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processExpression(GenerateJavaAST.java:676)
at sun.reflect.GeneratedMethodAccessor19.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 98 more
Caused by: com.google.gwt.dev.jjs.impl.InternalCompilerException:
Unexpected ope
rator for unary expression
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
processExpression(GenerateJavaAST.java:1034)
at sun.reflect.GeneratedMethodAccessor35.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown
Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at
com.google.gwt.dev.jjs.impl.GenerateJavaAST$JavaASTGenerationVisitor.
dispatch(GenerateJavaAST.java:274)
... 105 more
[ERROR] Build failed

Scott Blum

unread,
Aug 15, 2006, 7:41:37 PM8/15/06
to Google Web Toolkit
Hi Axel,

I'm pretty surprised by this bug, I could have sworn I was handling all
of the valid unary operators. There's -, !, and ~. Did I forget one?

If you can send me your project, I'd really like to figure this one
out.

Thanks!
Scott

Scott Blum

unread,
Aug 15, 2006, 7:48:27 PM8/15/06
to Google Web Toolkit
Actually, before you do that, see if you're using a (no really, I'm
serious) unary plus operator somewhere in your code. Something like:

x = +y;

D'OH! I can't believe I missed this case. Actually, I guess I can
since the operator doesn't actually *do* anything.

--red-faced Scott

Axel Kramer

unread,
Aug 16, 2006, 3:07:18 PM8/16/06
to Google Web Toolkit
Yes it's indeed the unary "+" Operator.
After deleting the operator in one of my files it works.

Thanks.

--
Axel Kramer
Blog: http://groovy-news.org/e/page/axelclk

Reply all
Reply to author
Forward
0 new messages