Question about get Method Handle to interface field

Radek Smogura rsmogura at
Sat Sep 2 17:20:06 UTC 2017

Hi all,

Recently I played a little bit and tried to obtain MethodHandle to GET method for interface static field. The code which I try to use is 

new Pool.MethodHandle(ClassFile.REF_getStatic, sym, types);

But it fails on assertion: Assert.check(!refSym.owner.isInterface() || interfaceOwner) located in MethodHandle.checkConsistent:365 ?

I wonder if such handles are allowed?


P.S. Sorry if I post this message twice, but I got SMTP issues

More information about the compiler-dev mailing list