Skip to content

[JExtract/JNI] Omit unsupported types instead of crashing#313

Merged
ktoso merged 5 commits into
swiftlang:mainfrom
madsodgaard:omit-unsupported-types
Jul 14, 2025
Merged

[JExtract/JNI] Omit unsupported types instead of crashing#313
ktoso merged 5 commits into
swiftlang:mainfrom
madsodgaard:omit-unsupported-types

Conversation

@madsodgaard
Copy link
Copy Markdown
Contributor

Omits any unsupported types such as UInt8 instead of crashing the generation.

Comment thread Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaBindingsPrinting.swift Outdated
Comment thread Sources/JExtractSwiftLib/JNI/JNISwift2JavaGenerator+JavaTranslation.swift Outdated
@ktoso
Copy link
Copy Markdown
Collaborator

ktoso commented Jul 13, 2025

Minor log level nitpick.

Does the FFM mode already do the same? Can we add the same “test” (just a decl we ignore) in FFM?

@madsodgaard
Copy link
Copy Markdown
Contributor Author

@ktoso Yes FFM should also ignore any unsupported types, but I also added a unsupported type to the FFM sample app.

@ktoso ktoso merged commit 9c0d7eb into swiftlang:main Jul 14, 2025
55 of 56 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