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 binary compatibility mode for default methods in interfaces #496

Closed
joffrey-bion opened this issue Apr 25, 2024 · 0 comments
Closed
Labels
enhancement New feature or request

Comments

@joffrey-bion
Copy link
Owner

Currently all Krossbow interfaces still use the old scheme generating a DefaultImpls class with default implementations as static methods. This is not ideal, and we should eventually move to real JVM default methods (since we target JDK8+).

However, this change is binary incompatible, so we should keep generating the old DefaultImpls classes. This is what the -Xjvm-default=all-compatibility mode is for.

https://blog.jetbrains.com/kotlin/2020/07/kotlin-1-4-m3-generating-default-methods-in-interfaces

@joffrey-bion joffrey-bion added the enhancement New feature or request label Apr 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant