-
Notifications
You must be signed in to change notification settings - Fork 41.1k
Provide support for Kotlin KClass parameter in SpringApplication.run() #8511
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
Labels
status: superseded
An issue that has been superseded by another
Comments
Kotlin support would align nicely with Spring 5.0 |
I have started to work on this. |
Pull request submitted. |
Closing in favour of PR #10511 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
It would be nice to support natively Kotlin
KClass
parameter to allow writingSpringApplication.run(FooApplication::class, *args)
in Spring Boot 2.0.I could be implemented using classpath detection, would avoid
java.lang.IllegalArgumentException: Invalid source type class kotlin.reflect.jvm.internal.KClassImpl
error that Kotlin users get by default and would provide more idomatic Kotlin code than the currentSpringApplication.run(FooApplication::class.java, *args)
.The text was updated successfully, but these errors were encountered: