Skip to content

Support for nested arrays in Array JavaValue#17

Merged
ktoso merged 3 commits into
swiftlang:mainfrom
ktoso:wip-nested-array-fix
Apr 7, 2026
Merged

Support for nested arrays in Array JavaValue#17
ktoso merged 3 commits into
swiftlang:mainfrom
ktoso:wip-nested-array-fix

Conversation

@ktoso
Copy link
Copy Markdown
Collaborator

@ktoso ktoso commented Apr 7, 2026

The types and lookups for jniNewArray did not properly handle nested arrays; this corrects that and by handling the special naming expectations this method has: [[[[[[Ljava/lang/String; for nested arrays, however skipping the L if just looking for plain class name

ktoso added 2 commits April 7, 2026 16:27
The types and lookups for jniNewArray did not properly handle nested
arrays; this corrects that and by handling the special naming
expectations this method has: [[[[[[Ljava/lang/String; for nested
arrays, however skipping the L if just looking for plain class name
@ktoso
Copy link
Copy Markdown
Collaborator Author

ktoso commented Apr 7, 2026

Ugh, I forgot primitives

@ktoso ktoso marked this pull request as draft April 7, 2026 07:40
@ktoso ktoso marked this pull request as ready for review April 7, 2026 07:44
@ktoso
Copy link
Copy Markdown
Collaborator Author

ktoso commented Apr 7, 2026

windows and nightly android/main have infra issues.

@ktoso ktoso merged commit 3be1dac into swiftlang:main Apr 7, 2026
47 of 50 checks passed
@ktoso ktoso deleted the wip-nested-array-fix branch April 7, 2026 07:55
ktoso added a commit to ktoso/swift-java that referenced this pull request Apr 7, 2026
This implements support of nested arrays of primitives or objects and
relies on updated jni-core in swiftlang/swift-java-jni-core#17
ktoso added a commit to ktoso/swift-java that referenced this pull request Apr 7, 2026
This implements support of nested arrays of primitives or objects and
relies on updated jni-core in swiftlang/swift-java-jni-core#17
ktoso added a commit to ktoso/swift-java that referenced this pull request Apr 7, 2026
This implements support of nested arrays of primitives or objects and
relies on updated jni-core in swiftlang/swift-java-jni-core#17
ktoso added a commit to ktoso/swift-java that referenced this pull request Apr 8, 2026
This implements support of nested arrays of primitives or objects and
relies on updated jni-core in swiftlang/swift-java-jni-core#17
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