Skip to content

jextract/jni: Fix code generation for optional String in tuples#724

Merged
ktoso merged 1 commit intoswiftlang:mainfrom
sidepelican:fix_optional_string_in_tuple
Apr 29, 2026
Merged

jextract/jni: Fix code generation for optional String in tuples#724
ktoso merged 1 commit intoswiftlang:mainfrom
sidepelican:fix_optional_string_in_tuple

Conversation

@sidepelican
Copy link
Copy Markdown
Contributor

Previously, there was a special handling logic for String within tuples, but this logic was not applied to String?, leading to incorrect output.

By leveraging the nativeJavaType introduced in #722, I was able to remove this special-case logic entirely.

@sidepelican sidepelican requested a review from ktoso as a code owner April 27, 2026 02:51
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.

Love removing edge cases :-)

@ktoso ktoso merged commit e8b376e into swiftlang:main Apr 29, 2026
64 checks passed
@sidepelican sidepelican deleted the fix_optional_string_in_tuple branch April 29, 2026 02:43
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