<div dir="ltr">Hi,<br><br>I'd like to propose updating the <b>ASM</b> dependency in standalone Nashorn<br><b>from 7.3.1 to 9.7.1</b>. This addresses <a href="https://bugs.openjdk.org/browse/JDK-8316344">JDK-8316344</a> [1].<br><br><b>Problem:</b><br>Nashorn currently depends on org.ow2.asm 7.3.1, released in January<br>2020. This version does not recognize class file format version 65<br>(Java 21) or later. While Nashorn primarily uses ASM for bytecode<br>generation rather than reading class files, the outdated dependency<br>causes version conflicts with other popular libraries (JaCoCo, Mockito,<br>ByteBuddy, jnr-ffi, etc.) that depend on ASM 9.x. When both versions<br>end up on the classpath, the resolution is unpredictable and can break<br>either Nashorn or the other library.<br><br><b>Proposed change:</b><br>Update asm.version property in make/nashorn/build.xml from 7.3.1 to<br>9.7.1. This is a one-line change. The POM template for Maven Central<br>publication picks up the version automatically.<br><br>ASM 9.7.1 supports class file formats through Java 23, providing<br>forward compatibility headroom.<br><br><b>Testing:</b><br>I have built Nashorn with ASM 9.7.1 and all 1698 existing tests pass<br>with zero failures on JDK 21.<br><br>The change is available at:<br><a href="https://github.com/Brankursine/nashorn/tree/JDK-8316344">https://github.com/Brankursine/nashorn/tree/JDK-8316344</a><br><br>I'm a new contributor and in the process of signing the OCA. I would appreciate<br>a sponsor for this change if the approach looks acceptable.<br><br>Thanks,<br>Brankursine<br><br>[1] <a href="https://bugs.openjdk.org/browse/JDK-8316344">https://bugs.openjdk.org/browse/JDK-8316344</a></div>