-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
Fix combination of @QuarkusMain and Kotlin native application #29755
Conversation
core/deployment/src/main/java/io/quarkus/deployment/steps/MainClassBuildStep.java
Outdated
Show resolved
Hide resolved
core/deployment/src/main/java/io/quarkus/deployment/steps/RegisterForReflectionBuildStep.java
Outdated
Show resolved
Hide resolved
...ation-tests/kotlin-serialization/src/main/kotlin/io/quarkus/it/kotser/GreetingApplication.kt
Show resolved
Hide resolved
This comment has been minimized.
This comment has been minimized.
382313b
to
6e54c0c
Compare
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This fix is better but it makes assumptions about the name the class matching the file name. It creates subtle holes (subtler than the original issue in some ways) that are likely to crop up later. I don't like this approach and am generally opposed but if users expect this kind of behavior when coming from Spring then I can plug my nose and move past it.
If this pattern where not proposed on the Kotlin page itself, I would not insist. |
Fixes: #29754