Skip to content

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

Merged
ktoso merged 1 commit into
swiftlang:mainfrom
Hokila:addPrimitiveFunction
Oct 5, 2026
Merged

ktoso merged 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) -> Double → java.util.function.IntToDoubleFunction
  • (Int64) -> Double → java.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
@Hokila
Hokila force-pushed the addPrimitiveFunction branch from 5b11fc5 to c590351 Compare September 25, 2026 11:31
@Hokila

Hokila commented Sep 25, 2026

Copy link
Copy Markdown
Contributor Author

@ktoso

I’ve rebased onto the latest main, including the CI fix from #923. Could you approve the new CI run⁠?

@ktoso

ktoso commented Sep 25, 2026

Copy link
Copy Markdown
Collaborator

On it, thank you

@Hokila

Hokila commented Oct 1, 2026

Copy link
Copy Markdown
Contributor Author

All CI checks are passing, and the PR is ready to merge. Thanks!

@ktoso
ktoso merged commit eb1b430 into swiftlang:main Oct 5, 2026
42 checks passed
@ktoso

ktoso commented Oct 5, 2026

Copy link
Copy Markdown
Collaborator

Thanks again

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