Upgrade to 2.9.0 from 2.8.2 is giving compilation errors while doing GWT compile

142 views
Skip to first unread message

Priya Kolekar

unread,
Jun 15, 2020, 8:24:35 AM6/15/20
to GWT Users
Hi All,

We are planning to upgrade GWT 2.8.2 to GWT 2.9.0 with java 11 environment,

But while GWT compile,I am getting lot of errors saying "No source code is available for type <CLASS>; did you forget to inherit a required module?" 
Problematic classes include "java.lang.Thread","java.io.InterruptedIOException" ,"org.w3c.dom.Element", "java.util.Properties"

As I understand,errors are raised because these classes are not emulated by GWT  & GWT is unable to find them.
But this was working fine with 2.8.2 version.

Any idea where its going wrong? Are there any specific things to be considered while upgrading to 2.9?

Also, is log4j-gwt.jar compatible with 2.9.0 version?

Colin Alworth

unread,
Jun 16, 2020, 11:49:47 AM6/16/20
to GWT Users
None of those classes are included in the default JRE emulation provided in either GWT 2.8.2 or 2.9.0 - if this previously worked, you might have had something on your classpath which provided those sources as supersource, or .gwt.xml files in those packages to indicate that they could be transpiled from some other sources? GWT 2.9.0 did remove one emulated class, NoSuchMethodException, and added several others (partial emulation for ExecutorService, ScheduledExecutorService, Flow), but none of these appear to intersect with the classes you mentioned.

Can you share more specific logs that show this issue?

Also, under GWT 2.8.2, were there warnings that some classes failed to compile, but that the errors were ignored? You can disable this with -strict/-failOnError so that no potential problems like this can go unnoticed.
Reply all
Reply to author
Forward
0 new messages