> On 21 Jun 2017, at 12:37, [email protected] wrote:
>
>
>
> De: "John Rose" <[email protected]>
> À: "Rémi Forax" <[email protected]>
> Cc: "Valhalla Expert Group Observers"
> <[email protected]>,
> [email protected]
> Envoyé: Mercredi 21 Juin 2017 18:03:49
> Objet: Re: notes from Valhalla meeting 5/24/17
>
> [...]
> It only repurposes the concept of field names and field types
> (as if from Fieldref but not using Fieldref) but does not actually link to
> fields.
>
> — John
>
> Ok, i do not understand exactly what you mean here,
> i will do a complete reading of the spec tomorrow so i hope things will be
> more clear for me.
>
Relevant bit:
CONSTANT_ConstantDynamic_info {
u1 tag;
u2 bootstrap_method_attr_index;
u2 name_and_type_index;
}
The value of the name_and_type_index item must be a valid index into the
constant_pool table. The constant_pool entry at
that index must be a CONSTANT_NameAndType_info structure (§4.4.6)
representing a field name and field descriptor (§4.3.2).
i.e. name and descriptor indexed by CONSTANT_NameAndType_info must conform to a
field name and field descriptor respectively, but there is no such actual field.
Hth,
Paul.