Web Images Videos Maps News Shopping Gmail more »
Recently Visited Groups | Help | Sign in
Google Groups Home
Compiler error: "Unexpected operator for unary expression"
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Axel Kramer  
View profile  
 More options Aug 15 2006, 5:04 pm
From: "Axel Kramer" <axel...@gmail.com>
Date: Tue, 15 Aug 2006 21:04:33 -0000
Local: Tues, Aug 15 2006 5:04 pm
Subject: Compiler error: "Unexpected operator for unary expression"
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
...

read more »


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Blum  
View profile  
 More options Aug 15 2006, 7:41 pm
From: "Scott Blum" <sco...@google.com>
Date: Tue, 15 Aug 2006 16:41:37 -0700
Local: Tues, Aug 15 2006 7:41 pm
Subject: Re: Compiler error: "Unexpected operator for unary expression"
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Scott Blum  
View profile  
 More options Aug 15 2006, 7:48 pm
From: "Scott Blum" <sco...@google.com>
Date: Tue, 15 Aug 2006 16:48:27 -0700
Local: Tues, Aug 15 2006 7:48 pm
Subject: Re: Compiler error: "Unexpected operator for unary expression"
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


    Reply to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Axel Kramer  
View profile  
 More options Aug 16 2006, 3:07 pm
From: "Axel Kramer" <axel...@gmail.com>
Date: Wed, 16 Aug 2006 19:07:18 -0000
Local: Wed, Aug 16 2006 3:07 pm
Subject: Re: Compiler error: "Unexpected operator for unary expression"
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 to author    Forward  
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »

Google Groups - Google Home - Terms of Service - Privacy Policy
©2009 Google