Add filter for bytecode generated by Kotlin serialization compiler plugin#1885
Add filter for bytecode generated by Kotlin serialization compiler plugin#1885Godin merged 7 commits intojacoco:masterfrom
Conversation
62da77b to
a1b4f51
Compare
0abbc62 to
5353fdd
Compare
leveretka
left a comment
There was a problem hiding this comment.
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.
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