On Tue, 8 Jul 2025 18:46:00 GMT, Chen Liang <li...@openjdk.org> wrote:

> In a recent inspection of all methods that accept an `int` argument in the 
> Class-File API, I noticed this method that validates its argument but did not 
> document the validation. The behavior is to throw IOOBE. We can simply 
> document this behavior and enhance existing tests to verify exceptional 
> behaviors in addition to anticipated outputs.
> 
> This is doc plus test only, so should be eligible for backport regardless of 
> priority. A CSR will be created to track this new assertion in the spec.
> 
> Testing: jdk/jdk/classfile/BuilderParamTest.java

This pull request has now been integrated.

Changeset: c9bea773
Author:    Chen Liang <li...@openjdk.org>
URL:       
https://git.openjdk.org/jdk/commit/c9bea77342672715f8f720d7311d66c2b3ac9f8a
Stats:     10 lines in 2 files changed: 9 ins; 0 del; 1 mod

8361615: CodeBuilder::parameterSlot throws undocumented IOOBE

Reviewed-by: asotona

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

PR: https://git.openjdk.org/jdk/pull/26200

Reply via email to