Errors in com/google/gwt/emul/java/lang/String.java

122 views
Skip to first unread message

Teletin Alin

unread,
Oct 13, 2016, 12:59:13 PM10/13/16
to GWT Contributors
Hi all,

I have the following error at compilation:

Errors in com/google/gwt/emul/java/lang/String.java
[INFO]             [ERROR] Line 165: 'String.NativeFunction String.getFromCharCodeFunction()' has invalid name 'String.fromCharCode'.
[INFO]             [ERROR] Line 165: 'String.NativeFunction String.getFromCharCodeFunction()' has invalid namespace '<window>'.
[INFO]             [ERROR] Line 757: 'String.NativeString' has invalid namespace '<window>'.
[INFO]       [ERROR] Compiler returned false

The pom.xml versions for gwt:
<gwt.maven.plugin.version>2.8.0-rc2-patched</gwt.maven.plugin.version>
<gwt.version>2.8.0-rc3</gwt.version>

I search for the issue and there are only 2 relevant discussions:

and
https://github.com/gwtproject/gwt/issues/9423 (I think the commit from here is causing the issue).

But I don't get from those discussions how to fix the issue.
Can you please help me?

Thank you,
Alin T.

Teletin Alin

unread,
Oct 13, 2016, 1:05:41 PM10/13/16
to GWT Contributors
Forgot to say that with:
The pom.xml versions for gwt:
<gwt.maven.plugin.version>2.8.0-rc2-patched</gwt.maven.plugin.version>
<gwt.version>2.8.0-rc2</gwt.version> 

it works. So, the problem is in rc3.

Roberto Lublinerman

unread,
Oct 13, 2016, 1:41:26 PM10/13/16
to google-web-tool...@googlegroups.com
You probably have a misconfigured class path. The symptoms are consistent with trying to compile rc3 GWT SDK emulation library with an rc2 compiler. 

--
You received this message because you are subscribed to the Google Groups "GWT Contributors" group.
To unsubscribe from this group and stop receiving emails from it, send an email to google-web-toolkit-contributors+unsubscribe@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/google-web-toolkit-contributors/c1bb53f0-959d-4845-95bf-1a33b547c6f6%40googlegroups.com.

For more options, visit https://groups.google.com/d/optout.

Thomas Broyer

unread,
Oct 13, 2016, 1:45:28 PM10/13/16
to GWT Contributors
Reply all
Reply to author
Forward
0 new messages