Compatibility problem - "Illegal access to a private field" with inline function and companion object


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.