I see ResolvedTestClass.java fail on my 7.1 AIX test machines with output very similar to the expected output. This may
be a testbug. The test fails expecting the line '@ 3 java.lang.invoke.Invokers$Holder::linkToTargetMethod (9 bytes)
force inline by annotation'.
--- Linux (expected) output ---
> 128 7 % b 3 compiler.jsr292.ResolvedClassTest$TestIndy::test @ 11 (33 bytes)
> @ 3 java.lang.invoke.Invokers$Holder::linkToTargetMethod (9 bytes) force inline by annotation
> @ 5 java.lang.invoke.DirectMethodHandle$Holder::invokeStatic (14 bytes) force inline by annotation
--- AIX (failing) output ---
< 237 7 % b 3 compiler.jsr292.ResolvedClassTest$TestIndy::test @ 11 (33 bytes)
< @ 3 java.lang.invoke.LambdaForm$MH/0x00000007c0002400::linkToTargetMethod (9 bytes) force inline by
annotation
< @ 5 java.lang.invoke.LambdaForm$DMH/0x00000007c0001c00::invokeStatic (14 bytes) force inline by annotation
Update: Issue is not platform specific. It seems to be related to CDS which is not available on AIX. Issue can be reproduced on other platforms using an exploded image.
For future reference, it looks to me that this failure is related to missing pre-generated invokers JDK-8247536. As I understand it, these are either not created, or just not linked in the exploded image, and are never created on AIX.