[lworld] Integrated: 8377576: [lworld] JVM_CopyOfSpecialArray does not handle all inputs correctly
Paul Hübner
phubner at openjdk.org
Wed Feb 18 08:55:38 UTC 2026
On Mon, 16 Feb 2026 15:38:40 GMT, Paul Hübner <phubner at openjdk.org> 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.
This pull request has now been integrated.
Changeset: d5e3620d
Author: Paul Hübner <phubner at openjdk.org>
URL: https://git.openjdk.org/valhalla/commit/d5e3620d5a0b13cce9c19bafd5b2dd881b8bf9e9
Stats: 61 lines in 3 files changed: 55 ins; 0 del; 6 mod
8377576: [lworld] JVM_CopyOfSpecialArray does not handle all inputs correctly
Reviewed-by: liach
-------------
PR: https://git.openjdk.org/valhalla/pull/2115
More information about the valhalla-dev
mailing list