RFR: 8289561: java/lang/instrument/NativeMethodPrefixAgent.java fails with "ERROR: Injection failure: java.lang.UnsupportedOperationException: Records requires ASM8"

Leonid Mesnik lmesnik at openjdk.org
Thu Oct 6 02:50:14 UTC 2022


On Thu, 6 Oct 2022 02:24:12 GMT, Alex Menkov <amenkov at openjdk.org> wrote:

> Test failure is a duplicate of [JDK-8284777](https://bugs.openjdk.org/browse/JDK-8284777), but the test needs to be updated:
> - the test instruments all loaded classes, so need to updated ASM version to support records and permits;
>   Instrumentor.addNativeMethodTrackingInjection is used only by this test;
> - return empty array from transforming does not cause test failure, added code to handle agent errors

Marked as reviewed by lmesnik (Reviewer).

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

PR: https://git.openjdk.org/jdk/pull/10589


More information about the serviceability-dev mailing list