-
Notifications
You must be signed in to change notification settings - Fork 2.8k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serialization failure in native mode when Kotlin companion object used #37957
Comments
Can you please attach a sample project with a test that reproduces this behavior? Thanks |
https://github.com/shenbinglife/quarkus-kotlin-demo reproduces this behavior |
Thanks for the reproducer. As a temporary workaround you can annotate What happens is that we register the whole class hierachy of |
#38062 fixes the problem |
Add companion classes to Kotlin reflective hierarchy registration
Fixes: quarkusio#37957 (cherry picked from commit e185df8)
Describe the bug
info
Build native on windows success, start success, but handle request failed.
One thing is : it's healty on non native build, using java -jar
quarkus + kotlin
source code
ERROR log
Expected behavior
No response
Actual behavior
No response
How to Reproduce?
Just send http request to any Path
Output of
uname -a
orver
No response
Output of
java -version
17
Mandrel or GraalVM version (if different from Java)
GraalVM 21.0.1+12.1
Quarkus version or git rev
3.6.3
Build tool (ie. output of
mvnw --version
orgradlew --version
)gradle 8.5
Additional information
Gradle
操作系统
The text was updated successfully, but these errors were encountered: