Skip to content

Support for Java interop #1046

Open
Open
@Petroniuss

Description

@Petroniuss

Describe the Feature

Smithy seems to support several programming languages (awesome-smithy) but it seems to lack direct support for Java.
The main complication here is that Kotlin code uses coroutines which are not easily callable from Java (or at least not in an idiomatic way).
Since JVM-based languages are interoperable the easiest way to provide idiomatic support for Java would be to codegen code that would be a bridge between Java and Kotlin.
I noticed that there exists a design spec for java interop here. Are there plans to implement it in the nearest future? Or is smithy-kotlin simply not targeting Java? 🙂

Proposed Solution

Implement Java interop behind a feature gate (plugin configuration property for example).

Describe alternatives you've considered

I was thinking about implementing it myself.

Additional Context

My applications using generated code by smithy are mostly Java-based apps and it'd be preferable for them to use something idiomatic to the language and not hand-write the bridge code.

  • I may be able to implement this feature request

Community Note

  • Please vote on this issue by adding a 👍 reaction to the original issue to help the community and maintainers prioritize this request
  • Please do not leave "+1" or "me too" comments, they generate extra noise for issue followers and do not help prioritize the request
  • If you are interested in working on this issue, please leave a comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions