Skip to content

Enable '-Xjvm-default=disable' explicitly to prevent API dump changes #4372

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

Merged
merged 1 commit into from
Mar 6, 2025

Conversation

udalov
Copy link
Member

@udalov udalov commented Mar 5, 2025

The default mode is changing from 'disable' to 'enable' in KT-71768. However, core libraries will migrate to the new '-jvm-default=enable' mode explicitly, once they update to Kotlin 2.2, see KT-72051.

The default mode is changing from 'disable' to 'enable' in KT-71768.
However, core libraries will migrate to the new '-jvm-default=enable'
mode explicitly, once they update to Kotlin 2.2, see KT-72051.
@udalov
Copy link
Member Author

udalov commented Mar 5, 2025

This change is similar to #4361, except that it's against the main dev branch (which is apparently easier for everyone in terms of user project / release train maintenance) and it uses -Xjvm-default so that the project will be compilable against both 2.1.20 and 2.2.0 with the same resulting binaries.

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