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

2025-07-17 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

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

2025-07-13 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

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

RFR: 8361614: Missing sub-int value validation in the Class-File API

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 propose