gwtproject / gwt

GWT Open Source Project
http://www.gwtproject.org
1.53k stars 378 forks source link

org/gwtproject/gwt/gwt-user-2.10.0 com.google.gwt.dev.Compiler fail #9999

Closed ntummuru closed 1 month ago

ntummuru commented 2 months ago

GWT version:2.10.0 Operating System: Windows 11 for x64-based open JDK version "11.0.21"

I can compile my project without errors with GWT 2.8.0 and open JDK version "1.8.0", but with GWT 2.10.0 and open JDK version "11.0.21" I get this error:

[ERROR] Hint: Check that your module inherits 'com.google.gwt.core.Core' either directly or indirectly (most often by inheriting module 'com.google.gwt.user.User')

Command which we are using to run the GWT module, no much logs generated with DEBUG mode also. Command java.exe -Djava.awt.headless=true -Xmx2042M -Xms1024M -cp com.google.gwt.dev.Compiler -war c -style OBF -localWorkers 2 -draftCompile -logLevel DEBUG

niloc132 commented 2 months ago

Unfortunately, you've left out the details that will help you to resolve this. Almost certainly this is a misconfiguration of your project and not a bug in GWT, but without seeing what is in your classpath, project contents, or the rest of the error it is hard to guess what is happening.

Most likely you've got some other JRE class that doesn't compile after your upgrade (custom emulation?) or an incompatible version of gwt-user/gwt-dev/etc that is conflicting.

TRACE debugging can be a good middle ground instead of DEBUG but will still log all compilation errors. Better still is using -strict/-failOnError which will let you use INFO/etc, but still log all compilation problems. Some projects fail with this setting where they would normally succeed (this means that compilation problems may well be hurting SDM performance).

niloc132 commented 1 month ago

Closing without more information.