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

Generate JVM default methods for procedural interfaces #1569

Merged
merged 2 commits into from
Oct 10, 2024

Conversation

JoelCourtney
Copy link
Contributor

  • Tickets addressed: None
  • Review: By commit
  • Merge strategy: Merge (no squash)

Description

For some reason Kotlin doesn't automatically generate JVM interface default methods by default, and you have to enable it with a compiler flag. In a few interfaces, I've provided a couple default overload specializations of a method (i.e. plan.directives() and directives(type) delegate to directives(type, deserializer)). If you implement the interface in Kotlin, you don't have to override the overloads. But in Java you do, unless we have this flag.

Verification

I tested this by converting the NotImplementedPlan test stub from Kotlin to Java.

@JoelCourtney JoelCourtney requested a review from a team as a code owner September 25, 2024 22:12
@JoelCourtney JoelCourtney self-assigned this Sep 25, 2024
@dandelany dandelany requested review from skovati and removed request for Mythicaeda October 10, 2024 17:18
Copy link
Contributor

@skovati skovati left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@JoelCourtney JoelCourtney force-pushed the feat/generate-default-methods-on-jvm branch from 7ba3ffd to 7526fe0 Compare October 10, 2024 21:24
@JoelCourtney JoelCourtney merged commit 86108a9 into develop Oct 10, 2024
10 checks passed
@JoelCourtney JoelCourtney deleted the feat/generate-default-methods-on-jvm branch October 10, 2024 21:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
Status: Done
Development

Successfully merging this pull request may close these issues.

2 participants