Re: RFR: 8361614: Missing sub-int value validation in the Class-File API [v2]

2025-07-09 Thread Adam Sotona
On Tue, 8 Jul 2025 20:28:23 GMT, Chen Liang wrote: >> In the `class` file format, a lot of the values are `u1` or `u2`; the >> Class-File API consistently model them with `int`. However, the API does >> not, in general, validate that int values passed to the factory methods are >> not out of t

Re: RFR: 8361614: Missing sub-int value validation in the Class-File API [v2]

2025-07-08 Thread Chen Liang
> In the `class` file format, a lot of the values are `u1` or `u2`; the > Class-File API consistently model them with `int`. However, the API does not, > in general, validate that int values passed to the factory methods are not > out of the bounds as defined in the class file format. This patch