-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Add filter for bytecode generated by Kotlin serialization compiler plugin #1885
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
62da77b to
a1b4f51
Compare
0abbc62 to
5353fdd
Compare
leveretka
left a comment
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.
Looks good! Thanks for looking into the issue.
I was thinking if we could somehow prevent such regression as it's tough thinking in advance of other possible compiler plugins and their combinations. On the other hand, serialization plugin is a pretty big one and we now have a test for it.
| nextIs(Opcodes.ARETURN); | ||
| return cursor != null | ||
| && getStaticInstruction.name.equals("INSTANCE") | ||
| && (lineNumberInstruction instanceof LineNumberNode) |
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.
Sadly we can't use pattern matching on instanceOf here (Java 14) :(
|
Thanks a lot @Godin for taking care of this MR as Kotlinx Serialization caused a lot of troubles for me with synthetic methods and coverage. I use a snapshot Jacoco version and today it broke for my project perhaps due to this commit (or another about ASM update). Please take a look if it's something relevant for a fix: The class it complains about |
|
@ajeihala first of all thank you for testing snapshot version and for the report ❤
like does not seem to be enough to trigger NPE, so could you please provide source code of your |
|
Perhaps the With this it fails too with |
Closes #1855