Classfile API AttributedElement.Kind removal proposal
Adam Sotona
adam.sotona at oracle.com
Tue Feb 7 14:33:51 UTC 2023
Hi,
Based on discussion in the Classfile API PR: https://github.com/openjdk/jdk/pull/10982#discussion_r1098601988
I would like to propose removal of AttributedElement.Kind across all Classfile API.
The AttributedElement.Kind models Attributes “where applicable” and it is a duplication of each Attribute extending ClassElement, MethodElement, CodeElement, etc…
Classfile API is not actively using the AttributedElement.Kind except for parsing, where inappropriate AttributedElement.Kind is resolved as UnknownAttribute.
Following proposal removes all usages of AttributedElement.Kind from Classfile API:
https://github.com/openjdk/jdk-sandbox/pull/48/files
Please let me know is there are any objections.
Thanks,
Adam
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20230207/8adf00fa/attachment-0001.htm>
More information about the classfile-api-dev
mailing list