Compiler Error

39 views
Skip to first unread message

v123

unread,
Sep 8, 2006, 10:58:28 AM9/8/06
to Google Web Toolkit
Getting a compiler Error - it does not even name the class that it
cannot compile. Any ideas? Any known issues with maybe inner classes or
something else?

Analyzing permutation #1
[ERROR] Unexpected internal compiler error
java.lang.IllegalArgumentException: Identifier already in use: this$0
at
com.google.gwt.dev.js.ast.JsScope.createUniqueObfuscatableName(JsScop
e.java:61)
at
com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST$CreateNamesAndScope
sVisitor.endVisit(GenerateJavaScriptAST.java:176)
at
com.google.gwt.dev.jjs.ast.JParameter.traverse(JParameter.java:22)
at
com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:109)
at
com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:36)
at
com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:521)
at
com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.execImpl(GenerateJa
vaScriptAST.java:1425)
at
com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.exec(GenerateJavaSc
riptAST.java:1380)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScr
iptCompiler.java:336)
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)

Eric B

unread,
Sep 8, 2006, 12:27:01 PM9/8/06
to Google Web Toolkit
If you run the compiler with the debugging option (can't remember the
name) to "ALL", you should be able to see what file is causing this
problem.

Another suggestion is to "clean" your project but either running "Clean
project" in eclipse or manually deleting everything in your bin
directory. Sometimes the class files get out of sync.

Thanks,
Eric

Scott Blum

unread,
Sep 8, 2006, 2:36:03 PM9/8/06
to Google-We...@googlegroups.com
Hi v123,

What version of GWT are you using? Your stack trace looks similar to
a bug that was fixed in 1.1.10.

Thanks,
Scott

v123

unread,
Sep 8, 2006, 3:18:54 PM9/8/06
to Google Web Toolkit
This is 1.1.0

The following is the end of the output with -ALL flag. It tries to
rebind the Sample and fails somewhere. I have only 1 inner class in
Sample, so most likely it is somewhere else, but the compiler does not
tell me where.

Rebinding com.ffpgwt.client.Sample
Checking rule <replace-with
class='com.google.gwt.user.client.ui.impl.FocusImplOld'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.ui.impl.FocusImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.ui.impl.TextBoxImplIE6'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.ui.impl.TextBoxImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.ui.impl.TextBoxImpl'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.ui.impl.TextBoxImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.ui.impl.FormPanelImplOpera'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.ui.impl.FormPanelImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.ui.impl.FormPanelImplIE6'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.ui.impl.FormPanelImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.ui.impl.FormPanelImpl'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.ui.impl.FormPanelImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.ui.impl.PopupImplIE6'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.ui.impl.PopupImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.ui.impl.PopupImpl'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.ui.impl.PopupImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.impl.HistoryImplSafari'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.impl.HistoryImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.impl.HistoryImplIE6'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.impl.HistoryImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.impl.HistoryImplStandard'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.impl.HistoryImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.impl.DOMImplMozilla'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.impl.DOMImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.impl.DOMImplIE6'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.impl.DOMImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.impl.DOMImplSafari'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.impl.DOMImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.impl.DOMImplOpera'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.impl.DOMImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <generate-with
class='com.google.gwt.user.rebind.rpc.ServiceInterfaceProxyGenerator'/>
Checking if all subconditions are true (<all>)
<when-assignable
class='com.google.gwt.user.client.rpc.RemoteService'/>
No, the requested type was not assignable
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.impl.HTTPRequestImplIE6'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.impl.HTTPRequestImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Checking rule <replace-with
class='com.google.gwt.user.client.impl.HTTPRequestImpl'/>
Checking if all subconditions are true (<all>)
<when-type-is
class='com.google.gwt.user.client.impl.HTTPRequestImpl'/>
Not an exact match
No: One or more subconditions was false
Rule did not match
Rebind result was com.ffpgwt.client.TableSample


[ERROR] Unexpected internal compiler error
java.lang.IllegalArgumentException: Identifier already in use: this$0
at
com.google.gwt.dev.js.ast.JsScope.createUniqueObfuscatableName(JsScope.java:61)
at

com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST$CreateNamesAndScopesVisitor.endVisit(GenerateJavaScriptAST.java:176)


at com.google.gwt.dev.jjs.ast.JParameter.traverse(JParameter.java:22)
at com.google.gwt.dev.jjs.ast.JMethod.traverse(JMethod.java:109)
at com.google.gwt.dev.jjs.ast.JClassType.traverse(JClassType.java:36)
at com.google.gwt.dev.jjs.ast.JProgram.traverse(JProgram.java:521)
at
com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.execImpl(GenerateJavaScriptAST.java:1425)
at
com.google.gwt.dev.jjs.impl.GenerateJavaScriptAST.exec(GenerateJavaScriptAST.java:1380)
at
com.google.gwt.dev.jjs.JavaToJavaScriptCompiler.compile(JavaToJavaScriptCompiler.java:336)
at
com.google.gwt.dev.GWTCompiler.realizePermutation(GWTCompiler.java:590)
at
com.google.gwt.dev.GWTCompiler.compilePermutations(GWTCompiler.java:338)
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)

[ERROR] Build failed

v123

unread,
Sep 9, 2006, 3:43:42 PM9/9/06
to Google Web Toolkit
With v1.1.10 the assignment statement does not return a value. It
returns void.

Scott Blum

unread,
Sep 12, 2006, 4:03:25 AM9/12/06
to Google-We...@googlegroups.com
Hi v123,

Could you try compiling with 1.1.10?

Thanks,
Scott

Reply all
Reply to author
Forward
0 new messages