Re: RFR: 8311172: Classfile.PREVIEW_MINOR_VERSION doesn't match that read from class files

2023-07-17 Thread Adam Sotona
On Fri, 30 Jun 2023 13:10:55 GMT, Chen Liang wrote: > `Classfile.PREVIEW_MINOR_VERSION`, currently -1, is correct when passed to > `ClassBuilder::withVersion`, but is incorrect when compared to > `ClassModel::minorVersion`, which only sets the bits of 2 lowest bytes to 1 > (65536). Discovered

RFR: 8311172: Classfile.PREVIEW_MINOR_VERSION doesn't match that read from class files

2023-06-30 Thread Chen Liang
`Classfile.PREVIEW_MINOR_VERSION`, currently -1, is correct when passed to `ClassBuilder::withVersion`, but is incorrect when compared to `ClassModel::minorVersion`, which only sets the bits of 2 lowest bytes to 1 (65536). Discovered when trying to replace an asserted preview minor version with