OpenJDK 13 requires -XX:+AllowRedefinitionToAddDeleteMethods flag
Open
Nobody has claimed this yet.
area/java-agent
help wanted
status/has-workaround
- Dominant language
- Java
- Stars
- 1.5k
- Forks
- 95
- Avg merge
- 1d 14m
- Merged PRs (30d)
- 6
Description
OpenJDK 12.0.1 with even Kotlin 1.3.40-eap-67 works fine. However, using OpenJDK 13 build 23 I get the following exception:
Exception in thread "main" java.lang.RuntimeException: java.lang.UnsupportedOperationException: class redefinition failed: attempted to add a method
at reactor.blockhound.BlockHound$Builder.install(BlockHound.java:264)
at reactor.blockhound.BlockHound.install(BlockHound.java:64)
at de.hska.kunde.ApplicationKt.main(Application.kt:51)
Caused by: java.lang.UnsupportedOperationException: class redefinition failed: attempted to add a method
at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses0(Native Method)
at java.instrument/sun.instrument.InstrumentationImpl.retransformClasses(InstrumentationImpl.java:167)
at reactor.blockhound.BlockHound$Builder.instrument(BlockHound.java:273)
at reactor.blockhound.BlockHound$Builder.install(BlockHound.java:261)
... 2 more
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Reproduce the failure with OpenJDK 13 build 23 and the Kotlin application shown in the report. Read reactor.blockhound.BlockHound$Builder.install and instrument at BlockHound.java lines 261-273, then compare the behavior with OpenJDK 12. Done means the compatibility behavior is verified and covered by an appropriate regression check or clearly documented runtime requirement.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- java, kotlin
- Domain
- devtools
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 30/100