This page https://docs.oracle.com/javase/specs/jvms/se7/html/jvms-4.html#jvms-4.7 says
For all attributes, the attribute_name_index must be a valid unsigned 16-bit index into the constant pool of the class.
However, I'm wondering if that this field represents its own kind directly is better than the current specs.
(e.g) If the attribute_name_index
== 0x01, then the attribute kind is to be fixed as StackMapTable
without referencing Constant Pools.
What are the merits for current specs?