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

fix(java): Fix max Java array size for reader #1844

Merged

Conversation

fink-arthur
Copy link
Contributor

What does this PR do?

Fixes the maximum size of Java arrays using Integer.MAX_VALUE when it should be Integer.MAX_VALUE - 8.
See this https://github.com/openjdk/jdk14u/blob/84917a040a81af2863fddc6eace3dda3e31bf4b5/src/java.base/share/classes/jdk/internal/util/ArraysSupport.java#L577 or https://www.baeldung.com/java-arrays-max-size
Same as #1843 but for the reader.

Related issues

Does this PR introduce any user-facing change?

No

  • Does this PR introduce any public API change? No
  • Does this PR introduce any binary protocol compatibility change? No

Benchmark

Not needed

@fink-arthur fink-arthur changed the title Fix max Java array size for reader Sep 13, 2024
@chaokunyang chaokunyang merged commit d2677c5 into apache:main Sep 14, 2024
34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants