Re: [jdk25] RFR: 8361615: CodeBuilder::parameterSlot throws undocumented IOOBE

2025-07-11 Thread Chen Liang
On Wed, 9 Jul 2025 19:33:38 GMT, Chen Liang wrote: > Hi all, > > This pull request contains a backport of commit > [c9bea773](https://github.com/openjdk/jdk/commit/c9bea77342672715f8f720d7311d66c2b3ac9f8a) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. #26200 > > The commit

Re: [jdk25] RFR: 8361615: CodeBuilder::parameterSlot throws undocumented IOOBE

2025-07-11 Thread Adam Sotona
On Wed, 9 Jul 2025 19:33:38 GMT, Chen Liang wrote: > Hi all, > > This pull request contains a backport of commit > [c9bea773](https://github.com/openjdk/jdk/commit/c9bea77342672715f8f720d7311d66c2b3ac9f8a) > from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. #26200 > > The commit

Re: RFR: 8361615: CodeBuilder::parameterSlot throws undocumented IOOBE

2025-07-09 Thread Chen Liang
On Tue, 8 Jul 2025 18:46:00 GMT, Chen Liang 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 th

[jdk25] RFR: 8361615: CodeBuilder::parameterSlot throws undocumented IOOBE

2025-07-09 Thread Chen Liang
Hi all, This pull request contains a backport of commit [c9bea773](https://github.com/openjdk/jdk/commit/c9bea77342672715f8f720d7311d66c2b3ac9f8a) from the [openjdk/jdk](https://git.openjdk.org/jdk) repository. #26200 The commit being backported was authored by Chen Liang on 9 Jul 2025 and was

Re: RFR: 8361615: CodeBuilder::parameterSlot throws undocumented IOOBE

2025-07-09 Thread Chen Liang
On Tue, 8 Jul 2025 18:46:00 GMT, Chen Liang 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 th

Re: RFR: 8361615: CodeBuilder::parameterSlot throws undocumented IOOBE

2025-07-09 Thread Adam Sotona
On Tue, 8 Jul 2025 18:46:00 GMT, Chen Liang 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 th

RFR: 8361615: CodeBuilder::parameterSlot throws undocumented IOOBE

2025-07-08 Thread Chen Liang
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