Skip to content

MP-7604: Fix false positives for Kotlin default impls in ENABLE mode - #1569

Open
Magda Stożek (magdzikk) wants to merge 2 commits into
JetBrains:masterfrom
magdzikk:worktree-mp-7604-kotlin-default-stub
Open

MP-7604: Fix false positives for Kotlin default impls in ENABLE mode#1569
Magda Stożek (magdzikk) wants to merge 2 commits into
JetBrains:masterfrom
magdzikk:worktree-mp-7604-kotlin-default-stub

Conversation

@magdzikk

Copy link
Copy Markdown

Fixes the remaining part of https://youtrack.jetbrains.com/issue/MP-7604/Plugin-verifier-violations-for-Kotlin-2.2.0-default-impls.

A previous fix (#1405) handled the case of invocations of the compiler-generated $DefaultImpls class.

This fix handles the remaining case, where in ENABLE mode, the compiler adds methods to implementing classes that don't override the interface's default method themselves. Those methods would then be reported as overriding or invoking an @Internal/@Deprecated/@Experimental/@NonExtendable interface method. Here we add a way to recognize such methods and prevent them from being reported.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant