Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fix(java): Fix max Java array size for reader (#1844)
## 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 - #1842 ## 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 Co-authored-by: Arthur Finkelstein <[email protected]>
- Loading branch information