Wednesday, June 29, 2022

Re: 'Throwable.HasJavaThrowable' has invalid name '?'.

Yeah as Michael already said, I strongly encourage you to use "-strict" GWT compiler / DevMode parameter in all of your GWT projects and fix all GWT compile errors you are then seeing. We should have make that parameter the default setting long time ago. I really don't see any benefit of not using it.

The error you are seeing indicates that you have an old GWT 2.8.0 on your class path which is used for compilation. GWT 2.8.0 does not know anything about "*" or "?" as native JsInterop type names and thus disallows them. Both names have been implemented in GWT 2.8.1+ and have a special meaning. 


So use -strict to see GWT compilation errors that need to be fixed and check your classpath so that you really only have one GWT SDK version.

-- J.

mmo schrieb am Mittwoch, 29. Juni 2022 um 19:10:09 UTC+2:
When compiling one of our GWT-based projects with the new GWT 2.10.0 I get:

[INFO] --- gwt-maven-plugin:2.10.0:compile (default) @ zhstregisterjp-web ---
[INFO] Compiling module ch.zh.ksta.zhstregisterjp.ZHStRegisterJPWebDevelopment
[INFO]    Ignored 5 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to DEBUG or WARN to see all errors.
[INFO]    Ignored 14 units with compilation errors in first pass.
[INFO] Compile with -strict or with -logLevel set to TRACE or DEBUG to see all errors.
[INFO]    Errors in com/google/gwt/emul/java/lang/
[INFO]       [ERROR] Line 344: 'Throwable.HasJavaThrowable' has invalid name '?'.

Pardon me?

Any hint or direction what I could do or search for here to get over this?

You received this message because you are subscribed to the Google Groups "GWT Users" group.
To unsubscribe from this group and stop receiving emails from it, send an email to
To view this discussion on the web visit

No comments:

Post a Comment