Skip to content

Comments

jextract/jni: add support for optional Date and Date#568

Merged
ktoso merged 3 commits intoswiftlang:mainfrom
madsodgaard:optional-data
Feb 18, 2026
Merged

jextract/jni: add support for optional Date and Date#568
ktoso merged 3 commits intoswiftlang:mainfrom
madsodgaard:optional-data

Conversation

@madsodgaard
Copy link
Contributor

Adds support for Optional<Date> and Optional<Data>

@madsodgaard madsodgaard requested a review from ktoso as a code owner February 18, 2026 11:10
@ktoso
Copy link
Collaborator

ktoso commented Feb 18, 2026

Hah, that's actually something I hit recently, thanks :-)

throw JavaTranslationError.unsupportedSwiftType(swiftType)
}

return NativeParameter(
Copy link
Collaborator

Choose a reason for hiding this comment

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

Kinda tempted to add a debug or trace log statement here... Might be easier to spot omissions in future in with trace logging?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Sure. I added some debug logging

@ktoso ktoso merged commit db247ef into swiftlang:main Feb 18, 2026
50 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