Skip to content

Better @JavaClass detection for JExtract#647

Merged
ktoso merged 1 commit intoswiftlang:mainfrom
madsodgaard:better-javaclass-detection
Mar 25, 2026
Merged

Better @JavaClass detection for JExtract#647
ktoso merged 1 commit intoswiftlang:mainfrom
madsodgaard:better-javaclass-detection

Conversation

@madsodgaard
Copy link
Contributor

Instead of just detecting a @JavaClass wrapper by the prefix of Java in the name, we check if the JavaClass macro is attached to the class.

This allows us to use Java wrappers that are not prefixed with Java in Jextract method.

@madsodgaard madsodgaard requested a review from ktoso as a code owner March 25, 2026 12:50
@ktoso ktoso merged commit 2c6fc95 into swiftlang:main Mar 25, 2026
61 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