Skip to content

GWT 2.12

Compare
Choose a tag to compare
@niloc132 niloc132 released this 29 Oct 13:42
· 7 commits to main since this release
0056242

Highlights:

  • Added support for Java 12-17 language features, including text blocks, instanceof pattern matching, records, and switch expressions.
  • Minimum Java version 11 is required to run any dev tools, though the server code should continue to function with Java 8 for this release. Later versions may no longer support Java 8.
  • Added support for sourcemaps to include the contents of the sources files.
  • Enabled sourcemaps by default in all browsers
  • Fix CSP issues in linkers and dev mode, provide CSP workarounds for GWT-RPC payloads

Bug fixes:

  • Remove first character for delegating args to CodeServer (#9940)
  • Fix error initializeEnumMap() is exceeding the 65535 bytes limit (#9954)
  • Relax naming rules to allow valid java bean properties as jsproperties (#9875)
  • Allow SDM's web server to reuse a socket without waiting (#9946)
  • Each mapped stream must be closed after its contents have been placed… (#9949)
  • Fix native JsMethods with varargs called from Java varargs methods (#9957)

JRE Emulation:

  • Add Java 10 Collections APIs (#9904)
  • Add Java 9 BigInteger constructors (#9953)
  • Normalizer emulation (#9970)
  • String method emulation for Java 11, align Character.isWhitespace with Java 11 (#9975)
  • Implement java.lang.Math.nextAfter, nextUp, nextDown (#9978)
  • Added missing IOException to Reader.read(...) methods (#9933)
  • Support ElementType MODULE and RECORD_COMPONENT on annotations (#10002)

Deprecations and Removals:

  • The unload event has been deprecated in browsers, deprecated calls that require it, and rewrite calls that shouldn't need it. Deprecated methods have notes describing how to replace them with more modern strategies.
  • The mousewheel event has been deprecated in browsers, its usage in GWT has been replaced with the wheel event. This should be transparent to applications.
  • The com.google.gwt.dev.GetJreEmulation main class has been deprecated, and is planned to be removed in a future release.
  • The com.google.gwt.dev.RunWebApp main class has been deprecated, and is planned to be removed in a future release.
  • The SpeedTracer classes have been deprecated, and are planned to be removed/replaced in a future release.
  • The deprecated -XfragmentMerge flag no longer has any effect, to be removed in a future release.
  • The following deprecated, unused flags have been removed:
    • -XdisableUpdateCheck/-XcheckForUpdates
    • -incrementalCompileWarnings
    • -Xlibraries
    • -XoutLibrary, -Xlibrary
    • -Xlink
    • -missingDepsFile
    • -overlappingSourceWarnings
    • XstrictResources, enforceStrictResources
  • The following deprecated, noop main() classes in gwt-user have been removed
    • com.google.gwt.user.tools.ApplicationCreator
    • com.google.gwt.user.tools.ProjectCreator
  • The com.google.web.bindery.requestfactory.server.RequestFactoryJarExtractor class is no longer included in any release jars.

For more detail, see the commit log.