JetBrains / JetBrains/JetBrainsRuntime
InternalError when using mockito 5.3 with -XX:+AllowEnhancedClassRedefinition
- Dominant language
- Java
- Stars
- 2k
- Forks
- 269
- Avg merge
- 1h 18m
- Merged PRs (30d)
- 1
Description
Hi,
we recently upgraded from Spring Boot 2.7 to Spring Boot 3.1 and with this we also upgraded mockito from 4.5.1 to 5.3.1 and bytebuddy from 1.12.23 to 1.14.10.
We use JBR in our development flow with `-XX:+AllowEnhancedClassRedefinition` to have faster development cycles when working on UI tests so no restart is required.
After the upgrade we see exceptions caused by `java.lang.InternalError` in our tests when we use JBR with this flag.
I uploaded a minimal reproducer here: https://github.com/schmidti159/reproducer_for-internal_error_in_jbr_with_mockito
The readme also contains the complete stacktrace and steps how to reproduce.
I am using IntelliJ IDEA 2023.2.5 to start the test and could reproduce it with JBR version 17.0.9+7-b1087.3
Could you please have a look? Having enhanced class redefinition is very valuable to our development workflow.
Contributor guide
Assessment
This issue has not been assessed yet.