Skip to content
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

Enable jvm-default=all. #1491

Merged
merged 3 commits into from
Oct 9, 2022
Merged

Enable jvm-default=all. #1491

merged 3 commits into from
Oct 9, 2022

Conversation

colinrtwhite
Copy link
Member

@colinrtwhite colinrtwhite commented Oct 2, 2022

This is finally safe to enable as of Kotlin 1.6.20 as the downstream warning for consumers was removed. The change should be transparent to users as the change is binary compatible (we need to mark existing interfaces with @JvmDefaultWithCompatibility though), source compatible, and doesn't require adding a compiler argument. Jetpack Compose made this change in 1.2.0.

This change also makes it easier to implement Listener and Target in Java.

@colinrtwhite colinrtwhite merged commit c2ef3ac into main Oct 9, 2022
@colinrtwhite colinrtwhite deleted the colin/java_default_methods branch October 9, 2022 03:16
colinrtwhite added a commit that referenced this pull request Oct 22, 2022
* Enable jvm-default=all.

* Revert.
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