Classfile API patch review request
Brian Goetz
brian.goetz at oracle.com
Tue Apr 4 15:48:51 UTC 2023
I have been reviewing API and structural changes, Adam can review code changes. I went through your list:
> Since the Classfile API was added, a few patches have been submitted,
> fixing various bugs in the API. Since Classfile API has no reviewer
> closely tied to it, I wish JDK reviewers on this list can take a peek
> at the following patches to facilitate the bug fixes to the Classfile
> API:
>
> https://bugs.openjdk.org/browse/JDK-8304937 BufferedFieldBuilder.Model
> missing writeTo(DirectClassBuilder)
> https://github.com/openjdk/jdk/pull/13187
Yes, this does look like a straightforward omission to me. Adam can review; please also check for similar omissions (other buffered builders, other kinds of elements.)
> https://bugs.openjdk.org/browse/JDK-8304837 Classfile API throws IOOBE
> for MethodParameters attribute without parameter names
> https://github.com/openjdk/jdk/pull/13167
Yes, this is just a bug. JVMS 4.7.24 allows nameIndex to be zero.
> https://bugs.openjdk.org/browse/JDK-8304148 Remapping a class with
> Invokedynamic constant loses static bootstrap arguments
> https://github.com/openjdk/jdk/pull/13021
Yes, seems like a straightforward omission.
> https://bugs.openjdk.org/browse/JDK-8304031 Classfile API cannot
> encode Primitive Class as Condy
> https://github.com/openjdk/jdk/pull/12996
Looks reasonable.
So all of these look like straightforward patches; no objections from a specification or API perspective. Please work with Adam for review, test coverage, etc.
More information about the classfile-api-dev
mailing list