On Fri, 3 Feb 2023 17:59:53 GMT, Maurizio Cimadamore <mcimadam...@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

Reply via email to