Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some functions are not available in Java #29

Open
VichitraMac opened this issue Jan 13, 2021 · 1 comment
Open

Some functions are not available in Java #29

VichitraMac opened this issue Jan 13, 2021 · 1 comment

Comments

@VichitraMac
Copy link

Some functions are not available in Java because @JvmStatic is not added above the function declarations.

@AlanChiou
Copy link

If the class is object class in Kotlin

object class KotlinObject {
  fun method() {
  }
}

You should use INSTANCE in Java

KotlinObject.INSTANCE.method();

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants