Vertispan / j2clmavenplugin

Maven plugin to launch new J2CL compilation
https://vertispan.github.io/j2clmavenplugin/
Apache License 2.0
53 stars 26 forks source link

Archetypes incorrectly rely on J2CL name mangling #196

Closed niloc132 closed 1 year ago

niloc132 commented 1 year ago

The next Vertispan tag of J2CL will have a chance in how name mangling works, which breaks our current archetypes and some unit tests. Instead, example code should always use jsinterop before trying to reference Java symbols from JS.

Unfortunately, with the default flags, this is identified as a compile time warning rather than an error, and won't cause an error until runtime.

Consider backporting this and releasing a 0.20.1 if 0.21 takes too long, to avoid the number of broken apps build by archetypes.

niloc132 commented 1 year ago

See also #197, which could help users to catch this class of issue (and others).