-
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
Automatically add Kotlin stdlib as an index dependency when using quarkus-kotlin extension #35504
Comments
/cc @evanchooly (kotlin), @geoand (kotlin) |
What is the warning you are seeing? |
@geoand Sorry, added some information from the referenced post to this issue. Should be understandable without having to view the post now. |
No problem. Any chance you can give the full watning message? |
Sorry, missed the
|
Hm interesting. Can you attach a small sample applicaiton that leads to this behavior? I want to see what causes these types to be including in the attempted reflection registration. |
If in the end we have to add elements to the index, maybe we should add only the classes that make sense instead of the whole lib (if they are easy to determine). |
My guess is that we should probably just exclude certain Kotlin classes from hierarchy traversal, but I want to see the sample first |
Hi, I've created a sample: https://github.com/greyhairredbear/quarkus-kotlin-stdlib-jandex-sample Note: When creating the sample, I first tried to simply use a So it seems to me that |
Hm... the sample doesn't trigger the warning for me so it would be great if you could add a clas that triggers it |
Oh, sorry, seems like something in my git was off (maybe unstaged changes?) - I have the sample on my home laptop, so I'll update the project as soon as I get home @geoand edit/update: I've added the missing changes to the repo, sorry again for messing up |
Unless I am doing something wrong, I don't see any change |
Got it, thanks. |
Ignore reflection warnings for built-in Kotlin classes
Description
As already discussed in this stackoverflow-post:
When using Quarkus
3.1.3.Final
, thequarkus-kotlin
extension and Gradle, the Kotlin stdlib (containing classes like e.g.Lazy
orFunction1
) is not on the Jandex index. This leads to the following warning on startup, if any of these classes are used:Adding
to the
application.properties
file fixes that warning.It would be nice to have the stdlib automatically added to the Jandex index when using the
quarkus-kotlin
extension to avoid that warning and to have to manually add what I would consider boilerplate to theapplication.properties
fileThe text was updated successfully, but these errors were encountered: