Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Extend byte <> UInt8 conversion to union types #48

Merged
merged 1 commit into from
Feb 29, 2024
Merged

Conversation

mchitre
Copy link
Member

@mchitre mchitre commented Feb 29, 2024

Java uses signed bytes, and in Julia we use UInt8 for bytes. This requires auto conversion since the JSON representation from Java has signed values that Julia refuses. The conversion worked fine when the target was a Vector{UInt8} but failed for Union{Nothing,Vector{UInt8}} or similar types. This PR fixes that.

@mchitre mchitre requested a review from ettersi February 29, 2024 16:09
@mchitre mchitre self-assigned this Feb 29, 2024
@mchitre mchitre merged commit 71407c1 into master Feb 29, 2024
2 checks passed
@mchitre mchitre deleted the fix-union branch February 29, 2024 23:50
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