RuntimeInvisibleParameterAnnotations attribute
Class-retention annotations on each parameter..
- Appears on
- method
- Since
- class file 49.0 (Java 5)
- javac writes it
- for class-retention annotations on parameters
- Needed by the JVM
- no: it is for the class libraries (reflection), compilers or tools
Layout
| Type | Field | What it holds |
|---|---|---|
u2 | attribute_name_index | a Utf8: "RuntimeInvisibleParameterAnnotations" |
u4 | attribute_length | bytes after this field |
u1 | num_parameters | |
parameter_annotations[…] | parameter_annotations |
What it is for
Class-retention annotations on each parameter.
How common it is
None of the 7,391 classes in JDK 25.0.5's java.base has one.
Specification: JVMS §4.7, The RuntimeInvisibleParameterAnnotations Attribute (Java SE 25).