Open xamde opened 2 years ago
When using mvnDebug and stepping around in the running plugin, I could see that the correct Externalizable class (with methods stripped away) was present in bot the bootstrap-classpath jar and tje jre-0.10 jar. So double good. I still have no idea why/where javac finds the original JRE class.
I found a case where the "stripped_bytecode" task ran, marked the directory as "success" but the output.log shows compiler ERRORs. The compiler errors are complaining about the Externalizable
not being properly implemented.
So it seems in addition to using the wrong JRE classes we also misinterpret the javac results.
Found a solution, see https://github.com/Vertispan/j2clmavenplugin/pull/142
I have a class A which implements Externalizable. It needs to look like this:
Then comes the source code stripper:
Next runs the stripped byte code task:
So how is this supposed to work? The GWT/J2cl JRE emulation of Externalizable states:
So either I have some project setup issue or maybe j2cl maven plugin is using the JRE-JRE instead of the GWT/J2CL-JRE?