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
but fails at runtime: with Exception in thread "main" java.lang.IncompatibleClassChangeError: Expecting non-static method T$.ff()I
invoking T$.ff() from Java works, but is not as expected.
Also note that the field is private, name-mangled and in the module class. IUC, the SIP says that a public static should be generated in the companion class (not the module class), and it should not be name-mangled to support java interop.
The text was updated successfully, but these errors were encountered:
produces an invalid forwarder method in
T.class
:In
T$.class
we haveAccordingly, the following Java file compiles:
but fails at runtime: with
Exception in thread "main" java.lang.IncompatibleClassChangeError: Expecting non-static method T$.ff()I
invoking
T$.ff()
from Java works, but is not as expected.Also note that the field is private, name-mangled and in the module class. IUC, the SIP says that a public static should be generated in the companion class (not the module class), and it should not be name-mangled to support java interop.
The text was updated successfully, but these errors were encountered: