Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Can one re-generate Java Stackmaps automatically?

We are using some closed-source commercial application framework that involves a byte-code enhancer. While the byte-code enhancer can process Java 7 byte-code, it requires the use of the "-XX:-UseSplitVerifier" flag when starting the JVM.

We have just updated to using Java 7, and run into the issue that we use WebStart to run our application, and WebStart does not support this -XX:-UseSplitVerifier.

The tech support of the framework provider said that it would be "difficult to solve", which means we cannot expect a corrected version any time soon.

So, my question is: Can those stackmaps be generated somehow for existing classes? Could we plug-in some tool/plugin that re-generate those stackmaps after the application is built, but before it is deployed?

like image 509
Sebastien Diot Avatar asked Dec 03 '25 08:12

Sebastien Diot


1 Answers

ASM bytecode framework can help with recalculating StackMap structures. The only catch is to provide your own facility to resolve common super types.

like image 192
Eugene Kuleshov Avatar answered Dec 05 '25 23:12

Eugene Kuleshov



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!