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

java.lang.IllegalAccessError #38

Open
ugar0ff opened this issue Oct 2, 2019 · 1 comment
Open

java.lang.IllegalAccessError #38

ugar0ff opened this issue Oct 2, 2019 · 1 comment

Comments

@ugar0ff
Copy link

ugar0ff commented Oct 2, 2019

If I use adapter on kotlin I'm getting java.lang.IllegalAccessError: Illegal class access: 'me class' attempting to access 'com.cleveroad.adaptivetablelayout.ViewHolderImpl' (declaration of 'me class' appears in ...). If I use adapter on java I don't have this problem.

After researching, I found this to be a known issue using Java libraries with Kotlin because of the following:
Java allows accessing protected members from other classes in the same package and Kotlin doesn’t, so Java classes will have broader access to the code.

Do you plan to support Kotlin?

vyguera pushed a commit to vyguera/AdaptiveTableLayout that referenced this issue Dec 30, 2019
Changing ViewHolder visibility to public in order to support Kotlin applications
@vyguera
Copy link

vyguera commented Dec 30, 2019

I had the same issue in my kotlin application and recently I've fixed in my own fork. I've made a pull request on #41

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