Closed magicwerk closed 1 year ago
Hi, as usual, thanks for reporting!
I have changed the dist to shade full jctools to avoid this issue.
As for the missing tests for the examples - there are definitely some blind spots there, the functional tests are not 100% replicating the examples, but there is only so much I can do in my spare time :(
Another thing is that you need a particular class you want to retransform to hit this issue - it must force ASM to find the common superclass for stackmap frame calculation in order to call the affected code.
The fix provided for #632 seem not be fully working. If I try to trace with https://github.com/btraceio/btrace/blob/master/btrace-dist/src/main/resources/samples/HistoOnEvent.java more classes are reported as missing
To make it work locally, I disabled all the exclusions for org/jctools. As the JAR files does get much bigger, I wonder whether fiddling with the excludes is worth the pain.
I'm also surprised that an official example seems not be running - may be unit tests covering them could help.