RFR: Upgrade ASM to 9.0
Aleksey Shipilev
shade at openjdk.java.net
Mon Nov 30 17:42:09 UTC 2020
On Mon, 30 Nov 2020 10:37:19 GMT, Evgeny Mandrikov <godin at openjdk.org> wrote:
> Without this change execution of
>
> mvn archetype:generate \
> -DinteractiveMode=false \
> -DarchetypeGroupId=org.openjdk.jmh \
> -DarchetypeArtifactId=jmh-kotlin-benchmark-archetype \
> -DgroupId=org.sample \
> -DartifactId=test \
> -Dversion=1.0
>
> cd test
>
> mvn package \
> -Dkotlin.version=1.4.20 \
> -Dkotlin.compiler.jvmTarget=11 \
> -Djmh.generator=asm
>
> using JDK 11 fails with
>
> [INFO] --- exec-maven-plugin:1.2.1:java (default) @ test ---
> Processing 1 classes from /private/tmp/j/test/target/classes with "asm" generator
> Writing out Java source to /private/tmp/j/test/target/generated-sources/jmh and resources to /private/tmp/j/test/target/classes
> [WARNING]
> java.lang.reflect.InvocationTargetException
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:566)
> at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
> at java.lang.Thread.run (Thread.java:834)
> Caused by: java.lang.IllegalArgumentException
> at org.objectweb.asm.ClassReader.<init> (Unknown Source)
> at org.objectweb.asm.ClassReader.<init> (Unknown Source)
> at org.objectweb.asm.ClassReader.<init> (Unknown Source)
> at org.openjdk.jmh.generators.asm.ASMGeneratorSource.processClass (ASMGeneratorSource.java:59)
> at org.openjdk.jmh.generators.asm.ASMGeneratorSource.processClass (ASMGeneratorSource.java:53)
> at org.openjdk.jmh.generators.asm.ASMGeneratorSource.processClasses (ASMGeneratorSource.java:47)
> at org.openjdk.jmh.generators.bytecode.JmhBytecodeGenerator.main (JmhBytecodeGenerator.java:81)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke0 (Native Method)
> at jdk.internal.reflect.NativeMethodAccessorImpl.invoke (NativeMethodAccessorImpl.java:62)
> at jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke (DelegatingMethodAccessorImpl.java:43)
> at java.lang.reflect.Method.invoke (Method.java:566)
> at org.codehaus.mojo.exec.ExecJavaMojo$1.run (ExecJavaMojo.java:297)
> at java.lang.Thread.run (Thread.java:834)
> [INFO] ------------------------------------------------------------------------
> [INFO] BUILD FAILURE
You are good to go. (Ignore the test failure on Mac OS, it seems intermittent)
-------------
Marked as reviewed by shade (Committer).
PR: https://git.openjdk.java.net/jmh/pull/10
More information about the jmh-dev
mailing list