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

Alex Menkov amenkov at openjdk.org
Thu Oct 6 02:32:50 UTC 2022


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

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

Commit messages:
 - Fixed test

Changes: https://git.openjdk.org/jdk/pull/10589/files
 Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=10589&range=00
  Issue: https://bugs.openjdk.org/browse/JDK-8289561
  Stats: 18 lines in 3 files changed: 12 ins; 1 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/10589.diff
  Fetch: git fetch https://git.openjdk.org/jdk pull/10589/head:pull/10589

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


More information about the core-libs-dev mailing list