Re: Preventing obfuscation/inlining of a single function during GWT compilation

2021-11-05 Thread Jens
There is an annotation called 'DoNotInline' and acts as a compiler hint. So maybe you can fork GWT and apply that annotation to the method. But then you could also just change the implementation of the method to fit your needs. Obfuscation itself can only be enabled/disabled globally. The only

Re: jsConstructor returns undefined

2021-11-05 Thread Thomas Broyer
On Friday, November 5, 2021 at 10:33:00 AM UTC+1 Jens wrote: > You can use jsinterop-base library. It has a method > 'Js.asConstructorFn(Class)' …which uses c...@java.lang.Class::jsConstructor, so if it's null/undefined in your own JSNI, there's no reason it won't be in jsinterop-base's

Re: jsConstructor returns undefined

2021-11-05 Thread Jens
You can use jsinterop-base library. It has a method 'Js.asConstructorFn(Class)' -- J. pavel@gmail.com schrieb am Dienstag, 2. November 2021 um 09:49:41 UTC+1: > Hi all, > > I have noticed that the next code returns the undefined value in gwt 2.9.0 > > public static native Object