Skip to content

wrap-java: support java record types#842

Merged
ktoso merged 2 commits into
swiftlang:mainfrom
ktoso:wip-wrap-java-record
Jul 13, 2026
Merged

wrap-java: support java record types#842
ktoso merged 2 commits into
swiftlang:mainfrom
ktoso:wip-wrap-java-record

Conversation

@ktoso

@ktoso ktoso commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator

Simple addition to support record types using existing infra. This adds a new macro but it is just sugar over the existing JavaClass macro

Simple addition to support record types using existing infra.
This adds a new macro but it is just sugar over the existing JavaClass
macro
@ktoso ktoso force-pushed the wip-wrap-java-record branch from aae9acc to 53c156d Compare July 13, 2026 02:34
@ktoso

ktoso commented Jul 13, 2026

Copy link
Copy Markdown
Collaborator Author

The stdlib wrap check just failed because we're adding more comments, this is OK.


+/// Java `sealed class`, permits: `java.lang.reflect.Constructor`, `java.lang.reflect.Method`
 @JavaClass("java.lang.reflect.Executable", implements: GenericDeclaration.self)
 open class Executable: AccessibleObject {
   /// Java method `getAnnotatedExceptionTypes`.

@ktoso ktoso merged commit 851da56 into swiftlang:main Jul 13, 2026
41 of 42 checks passed
@ktoso ktoso deleted the wip-wrap-java-record branch July 13, 2026 03:34
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.

1 participant