You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This code compiles without errors, but fails at runtime with this message:
Exception in thread "main" java.lang.VerifyError: Bad invokespecial instruction: current class isn't assignable to reference class.
Exception Details:
Location:
ClassTwo$$anonfun$1.apply$mcII$sp(I)I @4: invokespecial
Reason:
Error exists in the bytecode
Bytecode:
0000000: 2a12 1d1b b700 23ac
The text was updated successfully, but these errors were encountered:
this obviously isn't a ClassOne in that anonymous function. It should use the outer reference to the ClassTwo instance. And the outer ref is used when calling super.m or just m, but not super[ClassOne].m...
This code compiles without errors, but fails at runtime with this message:
The text was updated successfully, but these errors were encountered: