Skip to content

Build: Switch from -Xjvm-default=all-compatibility to -Xjvm-default=all#175

Open
Johni0702 wants to merge 1 commit intomasterfrom
feature/switch-to-jvm-default-all
Open

Build: Switch from -Xjvm-default=all-compatibility to -Xjvm-default=all#175
Johni0702 wants to merge 1 commit intomasterfrom
feature/switch-to-jvm-default-all

Conversation

@Johni0702
Copy link
Contributor

So the Kotlin compiler longer generates the (unnecessary) DefaultImpls classes for new interfaces.
Existing interfaces are annotated with JvmDefaultWithCompatibility to preserve backwards compatibility.

The bump to our Kotlin dependency was required because JvmDefaultWithCompatibility was only introduced with Kotlin 1.6. But since we were compiling with 1.6 as our target, we were implicitly depending on that already anyway.

…t=all`

So the Kotlin compiler longer generates the (unnecessary) DefaultImpls
classes for new interfaces.
Existing interfaces are annotated with JvmDefaultWithCompatibility to
preserve backwards compatibility.

The bump to our Kotlin dependency was required because
JvmDefaultWithCompatibility was only introduced with Kotlin 1.6. But
since we were compiling with 1.6 as our target, we were implicitly
depending on that already anyway.

Co-authored-by: Jonas Herzig <jonas@spark-squared.com>
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.

2 participants