RFR (s) 8159470: Error message for ICCE for MethodHandle constant pool not helpful

harold seigel harold.seigel at oracle.com
Fri Jun 17 15:16:18 UTC 2016


Hi Coleen,

How about changing JVM_CONSTANT_MethodRef and 
JVM_CONSTANT_InterfaceMethodRef to what is in the JVMS, namely 
CONSTANT_Methodref and CONSTANT_InterfaceMethodref.

Thanks, Harold


On 6/17/2016 10:58 AM, Coleen Phillimore wrote:
> Summary: Reworded message and added test.
>
> Caused by: java.lang.IncompatibleClassChangeError: Inconsistent 
> constant pool data in classfile for class WithConfiguration. Method 
> lambda$autoDetect$0()Ljava/lang/String; at index 26 is 
> JVM_CONSTANT_MethodRef and should be JVM_CONSTANT_InterfaceMethodRef
>
> Added test because the existing tests didn't cover this code path.
>
> open webrev at http://cr.openjdk.java.net/~coleenp/8159470.01/webrev
> bug link https://bugs.openjdk.java.net/browse/JDK-8159470
>
> Ran nightly tests.
>
> Thanks,
> Coleen



More information about the hotspot-runtime-dev mailing list