On Mon, 26 Jun 2023 13:33:38 GMT, Adam Sotona <asot...@openjdk.org> wrote:

>> Classfile context object and multi-state options have been discussed at 
>> https://mail.openjdk.org/pipermail/classfile-api-dev/2023-May/000321.html
>> This patch implements the proposed changes in Classfile API and fixes all 
>> affected code across JDK sources and tests.
>> 
>> Please review.
>> 
>> Thanks,
>> Adam
>
> Adam Sotona has updated the pull request incrementally with one additional 
> commit since the last revision:
> 
>   8308646: Typo in ConstantValueAttribute

The API changes look great. I like the instance usages of ClassFile, and how CF 
is now used in a centralized fashion to double down as a cache/option store 
(and entry point for transformation). Seems like a step in a good direction, 
and make the API feel a little more cohesive.

A small subjective comment - I'm not too fond of using "context" as a 
variable/accessor name for all the places where we use a classfile. E.g. if 
classfile is the context, perhaps these variable/accessor should just be named 
"classfile" ?

-------------

Marked as reviewed by mcimadamore (Reviewer).

PR Review: https://git.openjdk.org/jdk/pull/14180#pullrequestreview-1498842746

Reply via email to