Next: , Previous: ClassModifiers Attribute, Up: Class Attributes


7.2.3 GhostField Attribute

This attribute contains information about a class's ghost fields. The format of the attribute is as follows:

     GhostField_attribute {
       u2 attribute_name_index;
       u4 attribute_length;
       u2 fields_count;
       {
         u2 access_flags;
         u4 BML_flags;
         u2 name_index;
         u2 descriptor_index;
       } fields[fields_count];
     }

The meaning of the fields:

The initial value of a ghost field must be set by a Set instruction in the static initializer (for static ghost fields) and constructors (for instance ghost fields).