-
Notifications
You must be signed in to change notification settings - Fork 1.2k
KotlinSerializableFilter should filter more methods #1971
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
Conversation
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.
Discussed this change offline.
The case with generic types can be handled later - #1972, other 3 cases needs to be covered to improve the behavior in case of serialization plugin.
|
Since there are many other projects waiting JaCoCo release with upgraded ASM (#1965), we are postponing the only so far found unhandled remaining and not so easy to handle case of @Dukoff92 @ajeihala Even if we are very confident in absence of NPEs and in this change in general, would it be possible to test latest snapshot to check our theory that with this change even without #1971 situation is already much better than before, and there are no other remaining cases than #1971 ? |
|
Thanks again for looking into the issue and providing a fix. I can confirm that everything looks good with the latest snapshot version. I’ve checked all sealed classes with the I also looked at the generated methods when data class parameters are of type We don’t have any enum classes using serialization, so I can’t speak to that, but I see that it’s been addressed in the PR above. Maybe @ajeihala can test it out and provide more clarity. |
|
@Dukoff92 Thank you very much for your fast tests! ❤️ |
This was overlooked in #1885
See #1969 (comment)
For example in case of
or
Example$Companion.get$cachedSerializer()Example$Companion.serializer()Example._init_$_anonymous_()- see JetBrains/kotlin@3f034e8In case of
Example.get$cachedSerializer()Example.serializer()And in case of
Example._childSerializers$_anonymous_()- see JetBrains/kotlin@3f034e8 and JetBrains/kotlin@b35161eExample._childSerializers$_anonymous_$0()