Lookup.findStatic() triggers verification of nestmates attribute too early ?
harold.seigel at oracle.com
Wed Apr 15 13:12:30 UTC 2020
Can you provide us with your failing test?
Also, did the failure occur with inline types or on a different repo?
On 4/15/2020 8:41 AM, Remi Forax wrote:
> Hi all,
> i've discovered that using Lookup.findStatic() triggers the verification that the attributes NestHost and the NestMembers are compatible.
> I believe it's a bug, the equivalent code using bytecodes will no trigger this early verification, the verification is done lazily when a private member of a class of the nest is accessed the first time.
> java.lang.IncompatibleClassChangeError: Type jdk.incubator.vector.Cell$VectorizedBackend$Template/0x0000000800457840 (loader: 'bootstrap') is not a nest member of jdk.incubator.vector.IntVector (loader: 'bootstrap'): current type is not listed as a nest member
> java.base/java.lang.invoke.MethodHandleNatives.resolve(Native Method)
More information about the valhalla-dev