On Mon, 16 Feb 2026 15:38:40 GMT, Paul Hübner <[email protected]> wrote:

> Hi all,
> 
> `Arrays.copyOf` and `Arrays.copyOfRange` internally use the same function, 
> `JVM_CopyOfSpecialArray`. While they both copy arrays, there are some 
> semantic differences in parameter checking and exception throwing between the 
> two that `JVM_CopyOfSpecialArray` is unable to differentiate. This patch 
> includes:
> * Separate error condition checking and exception throwing per method.
> * New test cases for each method.
> 
> Testing: tier 1.

Thanks for the review Chen!

-------------

PR Comment: https://git.openjdk.org/valhalla/pull/2115#issuecomment-3919495630

Reply via email to