[GR-46741] NoClassDefFoundError
thrown on the JVM but not with native image
#6691
Labels
NoClassDefFoundError
thrown on the JVM but not with native image
#6691
When a class constructor uses another class not present in the classpath,
getDeclaredConstructors
throws aNoClassDefFoundError
on the JVM while on native, when related reflection config is specified, no exception is thrown and no constructor is found. This prevents proper support of agent testing in Spring, see spring-projects/spring-framework#30511 related issue. I would expect consistent behavior between JVM and native, so native versions throws aNoClassDefFoundError
too.Steps to reproduce the issue
The attached repro works on the JVM with
./gradlew test
and fails on native with./gradlew nativeTest
.repro.zip
Describe GraalVM and your environment:
Reproduced with GraalVM CE 23.0.0-dev-20230522_1321.
The text was updated successfully, but these errors were encountered: