RFR: 8165276: Spec states to invoke the premain method in an agent class if it's public but implementation differs
Serguei Spitsyn
sspitsyn at openjdk.java.net
Thu Dec 10 00:54:35 UTC 2020
On Tue, 8 Dec 2020 20:05:24 GMT, Serguei Spitsyn <sspitsyn at openjdk.org> wrote:
>> All the discussion is in the bug and CSR:
>> https://bugs.openjdk.java.net/browse/JDK-8165276
>> https://bugs.openjdk.java.net/browse/JDK-8248189
>> We messed up in JDK-5070281 (JDK 6) and it came to light in JDK 9 when auditing the use of setAccessible in the JDK.
>
> Chris, I've added link to the jdk 15 review thread to the PR description.
Alan, Mandy and Chris,
Thank you for your comments!
I've committed and pushed an update which implements the suggestion from Mandy to get rid of inherited premain/agentmain methods. I also had to fix 3 tests (InheritAgent0100, InheritAgent1000 and InheritAgent1100) which started to fail with this update as they are relying on the inherited premain methods. I've refactored them to negative tests.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1694
More information about the serviceability-dev
mailing list