Skip to content

[JExtract/JNI] Support JavaKit wrapped types as function parameters.#330

Merged
ktoso merged 5 commits into
swiftlang:mainfrom
madsodgaard:jni-import-javakit-classes
Jul 24, 2025
Merged

[JExtract/JNI] Support JavaKit wrapped types as function parameters.#330
ktoso merged 5 commits into
swiftlang:mainfrom
madsodgaard:jni-import-javakit-classes

Conversation

@madsodgaard
Copy link
Copy Markdown
Contributor

Adds support for using JavaKit wrapped classes such as JavaLong, JavaInteger or any other Java class wrapped by the JavaKit macros.

This is only for parameters, as we have yet to solve #272

Users must pass in any dependencies and their swift-config using --depends-on. The build tool automatically locates them from the dependencies, just like the other build plugin.

Copy link
Copy Markdown
Collaborator

@ktoso ktoso left a comment

Choose a reason for hiding this comment

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

Looks great! Just some minor comments

Comment thread Plugins/JExtractSwiftPlugin/JExtractSwiftPlugin.swift Outdated
Comment thread Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+NativeTranslation.swift Outdated
Comment thread Sources/JExtractSwiftLib/Swift2JavaTranslator.swift Outdated
@ktoso ktoso merged commit 11dcbed into swiftlang:main Jul 24, 2025
29 checks passed
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