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

Michael Südkamp duke at openjdk.java.net
Sat Oct 30 09:46:15 UTC 2021


On Fri, 29 Oct 2021 20:50:44 GMT, Jean-Philippe Bempel <jpbempel at openjdk.org> wrote:

>> Add extension methods when constants are read, referenced, resolved
>> and constant pools fully resolved 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:
> 
>   add default for existing IParserExtension methods

Hi, I wanted to test this PR but are still unsure with Eclipse setup/usage.  I managed to check out the PR in my fork (what a GitHub Desktop magic :-) ). The project builds and I can run JMC. 
For testing the PR I wanted to start with the ConstantPoolExtensionTest Unittest and debug it. It's the first time I tried to run a JMC unittest fro Eclipse. As used to from IntelliJ IDE I tried "run as unittest" from the class context menu. This created a JUnit launch config. 
But the launcher fails with a basic ClassNotFoundException for this this test class. So obviously Eclipse failed to automatically create a working launch config.

Can you help me with this basic setup question? And sorry for beeing OT here. I can later delete this message again.

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

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


More information about the jmc-dev mailing list