Skip to content

[JExtract/JNI] Add support for protocols as parameter types#376

Merged
ktoso merged 14 commits into
swiftlang:mainfrom
madsodgaard:jni-protocols
Aug 29, 2025
Merged

[JExtract/JNI] Add support for protocols as parameter types#376
ktoso merged 14 commits into
swiftlang:mainfrom
madsodgaard:jni-protocols

Conversation

@madsodgaard
Copy link
Copy Markdown
Contributor

Adds support for exporting protocols in JNI mode. Methods using protocols either as existentials, opaque or generic parameters are now also exported. We also support composite types such as any A & B.

Comment thread Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift Outdated
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! Let's get this merged and we can always keep adding more functionality; The basis here is very nice

Comment thread Sources/SwiftJavaDocumentation/Documentation.docc/SupportedFeatures.md Outdated
Comment thread Sources/SwiftJavaDocumentation/Documentation.docc/SupportedFeatures.md Outdated
Comment thread Sources/SwiftJavaDocumentation/Documentation.docc/SupportedFeatures.md Outdated
@madsodgaard madsodgaard changed the title WIP: [JExtract/JNI] Add support for protocols as parameter types [JExtract/JNI] Add support for protocols as parameter types Aug 28, 2025
@madsodgaard madsodgaard marked this pull request as ready for review August 28, 2025 19:04
@ktoso ktoso merged commit 73d7882 into swiftlang:main Aug 29, 2025
69 of 76 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