RFR: 8294982: Implementation of Classfile API [v12]
Adam Sotona
asotona at openjdk.org
Mon Feb 6 14:16:59 UTC 2023
On Fri, 3 Feb 2023 17:59:53 GMT, Maurizio Cimadamore <mcimadamore at openjdk.org> wrote:
>> Adam Sotona has updated the pull request incrementally with one additional commit since the last revision:
>>
>> Classfile API moved under jdk.internal.classfile package
>
> src/java.base/share/classes/jdk/internal/classfile/BufWriter.java line 40:
>
>> 38: * to the end of the buffer, as well as to create constant pool entries.
>> 39: */
>> 40: public sealed interface BufWriter
>
> What is the relationship between this and ClassReader? Is one the dual of the other - e.g. is the intended use for BufWriter to write custom attributes, whereas ClassReader reads custom attributes?
Yes, it is an exposure of low-level API to support custom attributes.
-------------
PR: https://git.openjdk.org/jdk/pull/10982
More information about the build-dev
mailing list