Attribute safety
Brian Goetz
brian.goetz at oracle.com
Thu Aug 3 13:58:18 UTC 2023
On 8/3/2023 4:49 AM, Adam Sotona wrote:
>
> *From: *Brian Goetz <brian.goetz at oracle.com>
>
> > I am wondering about what is the practical difference between HAZMAT
> and UNKNOWN.
>
> Maybe there is no difference, all unknown attributes are HAZMAT, so we
> may drop UNKNOWN.
>
There is definitely a difference, the question is, whether it is
possible for an attribute to be "unknown" if it has a mapper. On the
one hand I kind of like including it here, because then we can treat all
attributes equally (they all have a mapper) rather than "unknown" as a
special case, but then we have to do the additional (small) change of
inflating a do-nothing mapper for every unknown attribute we come
across. Which i think is OK.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20230803/e12e2e4b/attachment.htm>
More information about the classfile-api-dev
mailing list