More last minute changes for the ClassFile API
Chen Liang
liangchenblue at gmail.com
Sun Dec 1 14:40:13 UTC 2024
Hello,
In the week before RDP 1, I think there are still a few enhancements that
require removal of existing APIs:
1. The components package. The utilities in this package are often
inconsistent; for example, class name remapper does not remap simple names
in InnerClasses; the locals shifter shifts an arbitrary number of slots.
These inconsistent behaviors will have to be kept even if they make no
sense in the long run, because people might have dependencies on these
behaviors. I think we should move these components to example snippets for
users, much like the System exit detection example in JEP 486.
2. The return types of PoolEntry::tag and AnnotationValue::tag. They
currently return byte and char respectively while their constants are of
int type. In addition, the byte tag can overflow if the constant pool tags
exceed 127, and by then the default Java widening conversion would be
erroneous for the constant pool tags.
What do you think?
Regards
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/classfile-api-dev/attachments/20241201/244aacd9/attachment.htm>
More information about the classfile-api-dev
mailing list