RFR: 7439: Introduced IConstantPoolExtension for Constant Pools [v6]

Michael Südkamp duke at openjdk.java.net
Wed Dec 15 16:03:05 UTC 2021


On Fri, 26 Nov 2021 20:46:41 GMT, Jean-Philippe Bempel <jpbempel at openjdk.org> wrote:

>> Add extension methods when constants are read, referenced, resolved, constant pools fully resolved and parsing finished to be able for example:
>> 
>>  * track constant pool usage inside events
>>  * replace or translate symbols, method names, etc... like
>> de-obfuscations of stack traces
>
> Jean-Philippe Bempel has updated the pull request incrementally with one additional commit since the last revision:
> 
>   remove unused import

The PR is merged, but I've resumed my tests and are in the middle of adapting my de-obfuscation code to the new extension mechanism. 
Question: How would you load such an extension in real life? By means of a plugin JAR? There are a lot of plugin JARs in the plugin folder of the build JMC, but I couldn't find a starting point for development. Could you point me to such a resource?

-------------

PR: https://git.openjdk.java.net/jmc/pull/333


More information about the jmc-dev mailing list