-
Notifications
You must be signed in to change notification settings - Fork 1k
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: KSP processing for package private properties #10777
fix: KSP processing for package private properties #10777
Conversation
We seem to be processing package private properties when using Ksp. This is incorrect and they should be skipped. Package-private isn't really a concept in Kotlin, but the Kotlin classes may be based on Java classes where it is a thing.
So if it is package private but in the same package that is not allowed? Does this align with java? |
The original issue is that the PersonRecord extends a public Jooq class This and this is package private... 🤔 I thought I added the same class to all 3 languages (groovy, java and kotlin) and kotlin was different... I will check again to make sure 🤔 |
@graemerocher You're right, I've found a difference between kotlin and java/groovy... working on it |
@graemerocher In d1d7e9e I added a test for all 3 languages to make sure we see the same... When the superclass is in the same package as the introspected bean, we do see the package private property in all 3 So I think this is right 🤔 |
Quality Gate passedIssues Measures |
We seem to be processing package private properties when using Ksp.
This is incorrect and they should be skipped.
Package-private isn't really a concept in Kotlin, but the Kotlin classes may be based on Java classes where it is a thing.
I believe when I have a fix, that this will fix micronaut-projects/micronaut-sql#1324
Closes: micronaut-projects/micronaut-sql#1324