Skip to content

jextract: Support Java Int & Long to Double func interfaces - #922

Open
Hokila wants to merge 1 commit into
swiftlang:mainfrom
Hokila:addPrimitiveFunction
Open

Hokila wants to merge 1 commit into
swiftlang:mainfrom
Hokila:addPrimitiveFunction

Conversation

@Hokila

@Hokila Hokila commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Add support for translating Swift closures to IntToDoubleFunction and LongToDoubleFunction functional interfaces.

  • (Int32) -> Doublejava.util.function.IntToDoubleFunction
  • (Int64) -> Doublejava.util.function.LongToDoubleFunction

Supports both FFM and JNI backends.

@Hokila
Hokila requested a review from ktoso as a code owner September 21, 2026 09:42
@Hokila
Hokila force-pushed the addPrimitiveFunction branch from e30a0fb to 5b11fc5 Compare September 21, 2026 09:53
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