Compatibility problem - "Illegal access to a private field" with inline function and companion object
Answered
Hi, one of my plugins has a false-positive compatibility problem:

The code in question is: LensMarkupModelListener.kt#L64-L77
The plugin verifier doesn't like that a private function, which is inlined into LensMarkupModelListener, accesses a private field in the companion object for LensMarkupModelListener.
There is no IllegalAccessError at runtime so it's a false positive, but I'd like to ask whether this is an issue with the plugin verifier or with Kotlin's code generation, and whether I should open an issue in YT about it.
Please sign in to leave a comment.
Hi Daniel,
I've created a YouTrack issue, please follow it:
https://youtrack.jetbrains.com/issue/MP-4829/Compatibility-problem-Illegal-access-to-a-private-field-with-inline-function-and-companion-object
I'm getting a 404 error.
Sorry, the access was restricted. It should be visible now.