-
Notifications
You must be signed in to change notification settings - Fork 60
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
Update kotlin-metadata-jvm #255
Conversation
1a92d10
to
3013d41
Compare
@@ -132,10 +131,9 @@ private fun FieldNode.buildFieldSignature( | |||
} | |||
|
|||
val property = companionClassCandidate?.kmProperty(name) | |||
|
|||
if (property != null && JvmFlag.Property.IS_MOVED_FROM_INTERFACE_COMPANION(property.flags)) { |
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.
That was a bug, and JvmFlag.Property.IS_MOVED_FROM_INTERFACE_COMPANION
worked here purely by coincidence.
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.
Thanks to the new stable API, it became obvious! ;)
W.r.t. newer metadata versions
kotlin-metadata-jvm seems to be API-compatible with Kotlin 1.6, but the API version is not set explicitly. Here's an issue on that: https://youtrack.jetbrains.com/issue/KT-69903 |
* Use stable kotlin-metadata-jvm version * Fixed check for properties declared in a companion object * Use readLenient to be more lenient w.r.t. newer metadata versions Pull request Kotlin/binary-compatibility-validator#255
* Use stable kotlin-metadata-jvm version * Fixed check for properties declared in a companion object * Use readLenient to be more lenient w.r.t. newer metadata versions Pull request Kotlin/binary-compatibility-validator#255
* Use stable kotlin-metadata-jvm version * Fixed check for properties declared in a companion object * Use readLenient to be more lenient w.r.t. newer metadata versions Pull request Kotlin/binary-compatibility-validator#255
Replaced
kotlinx-metadata-jvm
withkotlin-metadata-jvm,
and updated the code to use a new API.