Open Artur- opened 1 year ago
I have GraalVM 17 on Windows and that test passes. But it fails with OpenJDK 19 on Linux. So it's related to Java 19, not GraalVM.
It's a change in the JDK: now the toString
for those annotations uses dots instead of dollars. I tried to debug AnnotatedTypeBaseImpl
, but the toString
is behind a proxy and IDEA didn't step inside. Anyway, by debugging sun.reflect.annotation.AnnotatedTypeFactory.AnnotatedTypeBaseImpl#annotationsToString
using JDK 17 and 19 the difference is clear.
So the problem is using toString?
Yes, results are compared to expected strings, which is fine for a test. I don't know how that can impact native.
Probably does not if it is about Java 19
Description of the bug
If you run
mvn install
in the project with GraalVM 19 as your JDK, the build will fail atThis does not matter at all to me BUT if it indicates that there will be some
$
vs.
mismatch issues when using GraalVM, then it could break native compiled applications.Minimal reproducible example
mvn install
Expected behavior
Tests pass also with GraalVM
Versions: