Re: GWT 2.10.0 release

2022-06-27 Thread RT
Great to see this progress. Updated my project to 2.10 from 2.9, the only 
issue so far was removing the ie10 user agent in the gwt.xml, 
leaving safari,gecko1_8

On Saturday, June 25, 2022 at 1:33:25 AM UTC-5 blackh...@gmail.com wrote:

> This is great, thnx
>
> Op donderdag 23 juni 2022 om 18:16:50 UTC+2 schreef nilo...@gmail.com:
>
>> I'm very happy to announce the release of GWT 2.10.0. This is the first 
>> release using our new groupId, org.gwtproject, and the final release using 
>> com.google.gwt. If you resolve dependencies from Maven Central, please be 
>> certain that your project is using com.google.gwt:gwt (or 
>> org.gwtproject:gwt) as a BOM, so that you are certain to have consistent 
>> versions of gwt-user and gwt-dev, even across groupIds.
>>
>> For this release, either groupId will work, but future releases will only 
>> be made on the org.gwtproject groupId.
>>
>> The zip download of the GWT SDK is available at 
>> https://github.com/gwtproject/gwt/releases/download/2.10.0/gwt-2.10.0.zip
>>
>> --
>>
>> Release notes for GWT 2.10.0, taken from 
>> https://www.gwtproject.org/release-notes.html#Release_Notes_2_10_0
>>
>> Highlights 
>>
>>- 
>>
>>Updated to HtmlUnit 2.55.0 and Jetty 9.4.44. With this newer HtmlUnit 
>>build comes support for Promise in unit tests, and the browser strings 
>> that 
>>can be specified when running tests are “FF”, “Chrome”, “IE” (for IE11), 
>>“Edge”, and “Safari”.
>>- 
>>
>>Tested support for running on Java 17, dropped remaining support for 
>>running on Java 7.
>>- 
>>
>>Maven groupId is formally changed to org.gwtproject, projects should 
>>take care to make sure they are using either the old 
>>com.google.gwt:gwt BOM or the new org.gwtproject:gwt BOM to sure that 
>>Maven or Gradle correctly handle this change. This will be the last 
>>published version using the com.google.gwt groupId.
>>- 
>>
>>Dropped support for IE 8, 9, and 10.
>>
>> Bug fixes 
>>
>>- Correct Long.hashCode semantics
>>- Support CLASSPATH environment variable when creating child 
>>processes, fixing a bug where Windows could fail with a long list of 
>>arguments.
>>- Use Function.name instead of displayName to support visible method 
>>names in Chrome 93+.
>>- Allow stack traces to be available in Chrome when loading scripts 
>>from a remote origin.
>>
>> JRE Emulation 
>>
>>- Added OutputStreamWriter emulation.
>>- Support StringReader mark() and reset() methods.
>>- Added StrictMath emulation.
>>- Added BufferedWriter emulation.
>>- Added incomplete PrintStream emulation.
>>- Add Charset.defaultCharset() emulation.
>>- Improve BigInteger emulated performance.
>>- System.nanoTime() emulation with performance.now().
>>- Added Optional.isEmpty emulation.
>>- JRE Emulation improvements/simplifications to facilitate J2CL’s 
>>WASM support. Note that these do not always offer specific improvements 
>> to 
>>GWT itself, but helps to keep the codebases consistent.
>>
>> Miscellaneous 
>>
>>- Add support to compile GWT itself in Java 9+.
>>- Improve compiled code size for applications that never use streams, 
>>by avoiding referencing streams from Throwable.
>>
>> For more detail, see the commit log 
>> .
>>
>

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/27e2ed02-932d-4ba0-9c49-7dca86c5ba38n%40googlegroups.com.


Re: What are legal "user.agent=" values?

2022-06-27 Thread Jens


> So - according to the release notes which mention “FF”, “Chrome”, “IE” 
> (for IE11), “Edge”, and “Safari” as new user.agent values I changed that 
> to "Chrome, Edge". 
>

Not these values are for running HTMLUnit, not for GWT compiler.


Thus my question: what *are* the new valid user.agent values? Do they have 
> to be in all-lowercase (as the old ones) or what exactly can or does one 
> have to enter here? 
>

GWT 2.10.0 user.agent values are 

   - gecko1_8: Used for FireFox and IE 11
   - safari: Used for everything based on WebKit (Safari, Chrome, Edge, 
   Opera, ...)
   


-- J.

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/ede9f7d5-881e-4dfa-a850-719c1b1a4bf5n%40googlegroups.com.


Re: Internal Compiler Failure when trying to upgrade a GWT 2.7.0 application to 2.8.1

2022-06-27 Thread Jens


> [INFO] Caused by: java.lang.NoSuchMethodError: 
> org.eclipse.jdt.internal.compiler.lookup.MethodBinding.isDefaultMethod()Z
>

 This line indicates that you have some version of JDT / ECJ on your 
classpath during GWT compilation that is incompatible with the one that GWT 
compiler uses. JDT is embedded in gwt-dev.jar so it is possible that some 
other dependency brings in a different version.


-- J.

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/d4aa5d86-ac93-40cf-bca6-36c0fb55076bn%40googlegroups.com.


Internal Compiler Failure when trying to upgrade a GWT 2.7.0 application to 2.8.1

2022-06-27 Thread mmo
I am trying to upgrade an application still using GWT 2.7.0 to at least 
2.8.1 (and if possible higher, i.e. 2.9.0 or ideally 2.10.0).

After raising the GWT version from 2.7.0 to 2.8.1 the compilation of the UI 
maven module now always ends in an internal compiler failure: 

...
[INFO] --- gwt-maven-plugin:2.8.1:compile (default) @ zhstregisterjp-web ---
[INFO] Compiling module 
ch.zh.ksta.zhstregisterjp.ZHStRegisterJPWebDevelopment
[INFO] [ERROR] An internal compiler exception occurred
[INFO] com.google.gwt.dev.jjs.InternalCompilerException: Error constructing 
Java AST
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.translateException(GwtAstBuilder.java:3944)
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.getInternalCompilerException(GwtAstBuilder.java:4351)
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4043)
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.processImpl(GwtAstBuilder.java:3883)
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.process(GwtAstBuilder.java:3918)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater$UnitProcessorImpl.process(CompilationStateBuilder.java:129)
[INFO]  at 
com.google.gwt.dev.javac.JdtCompiler$CompilerImpl.process(JdtCompiler.java:384)
[INFO]  at 
org.eclipse.jdt.internal.compiler.Compiler.compile(Compiler.java:470)
[INFO]  at 
com.google.gwt.dev.javac.JdtCompiler.doCompile(JdtCompiler.java:1092)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder$CompileMoreLater.compile(CompilationStateBuilder.java:325)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.doBuildFrom(CompilationStateBuilder.java:548)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:479)
[INFO]  at 
com.google.gwt.dev.javac.CompilationStateBuilder.buildFrom(CompilationStateBuilder.java:465)
[INFO]  at 
com.google.gwt.dev.cfg.ModuleDef.getCompilationState(ModuleDef.java:423)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:222)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:202)
[INFO]  at com.google.gwt.dev.Precompile.precompile(Precompile.java:143)
[INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:204)
[INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:155)
[INFO]  at com.google.gwt.dev.Compiler.compile(Compiler.java:144)
[INFO]  at com.google.gwt.dev.Compiler$1.run(Compiler.java:118)
[INFO]  at 
com.google.gwt.dev.CompileTaskRunner.doRun(CompileTaskRunner.java:55)
[INFO]  at 
com.google.gwt.dev.CompileTaskRunner.runWithAppropriateLogger(CompileTaskRunner.java:50)
[INFO]  at com.google.gwt.dev.Compiler.main(Compiler.java:125)
[INFO] Caused by: java.lang.NoSuchMethodError: 
org.eclipse.jdt.internal.compiler.lookup.MethodBinding.isDefaultMethod()Z
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMethod(GwtAstBuilder.java:4138)
[INFO]  at 
com.google.gwt.dev.jjs.impl.GwtAstBuilder.createMembers(GwtAstBuilder.java:4033)
[INFO]  ... 21 more
[INFO][ERROR] at ClickEvent.java(23): public class ClickEvent extends 
MouseEvent
[INFO]   org.eclipse.jdt.internal.compiler.ast.TypeDeclaration
---


ANY idea or hint anyone, how to analyze this? Or how to figure out what 
could be causing this and where to start searching???

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/b76c64eb-ea0e-479e-a7c4-8f4db3f389d5n%40googlegroups.com.


What are legal "user.agent=" values?

2022-06-27 Thread mmo
I was trying to update our application from GWT 2.8.1 to the new GWT 2.10.0.
The first compilation failed with the eror message that ie10 was not a 
legal user.agent value (we had indeed used that value, since it was the 
newest IE version available).

So - according to the release notes which mention “FF”, “Chrome”, “IE” (for 
IE11), “Edge”, and “Safari” as new user.agent values I changed that to 
"Chrome, Edge". 
The subsequent compilation then succeeded but when starting up the 
application I get the error:

[INFO]  [ERROR] Line 21: Value 'Chrome' in not a valid value for 
property 'user.agent'
[INFO]  [ERROR] Line 21: Value 'Edge' in not a valid value for 
property 'user.agent'

Thus my question: what *are* the new valid user.agent values? Do they have 
to be in all-lowercase (as the old ones) or what exactly can or does one 
have to enter here? 

-- 
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 google-web-toolkit+unsubscr...@googlegroups.com.
To view this discussion on the web visit 
https://groups.google.com/d/msgid/google-web-toolkit/d3714e65-92f8-47f3-968a-892cb0baad01n%40googlegroups.com.