JDK 14 record type representation in classfile format?

Remi Forax forax at univ-mlv.fr
Sat Mar 21 20:01:57 UTC 2020


----- Mail original -----
> De: "Remi Forax" <forax at univ-mlv.fr>
> À: "Luke Hutchison" <luke.hutch at gmail.com>
> Cc: "jdk-dev" <jdk-dev at openjdk.java.net>, "amber-dev" <amber-dev at openjdk.java.net>
> Envoyé: Samedi 21 Mars 2020 19:00:04
> Objet: Re: JDK 14 record type representation in classfile format?

[...]

>> 
>> Also, records have an "InnerClasses" class attribute, with an inner class
>> name of "java.lang.invoke.MethodHandles$Lookup" and an outer class name of
>> "java.lang.invoke.MethodHandles". Normally the outer class name matches the
>> class whose classfile the attribute is contained in. Why is this inner
>> class attribute there, and why does the outer class name not match the name
>> of the record?
> 
> This look like a bug to me.

I've created https://bugs.openjdk.java.net/browse/JDK-8241398 to track that.

cheers,
Rémi


More information about the amber-dev mailing list