Fzzy Config

Fzzy Config

8M Downloads

Cannot reference non-static method "ConfigApi.openScreen" or "ConfigApiJava.openScreen" from a static context in java

QiuShui1012 opened this issue · 2 comments

commented

Same as title.
This method should also be annotated with @JvmStatic, otherwise it can only be called by instantiating this class in Java.
image
↓Need to be called by instantiation - but the constructor method is private.
image

commented

Just use ConfigApi.INSTANCE, automatically provided for you. Unfortunately adding JvmStatic would be a breaking API change at this point.

commented

Just use ConfigApi.INSTANCE, automatically provided for you. Unfortunately adding JvmStatic would be a breaking API change at this point.

Understood. thank!