Cleveroad / Cleveroad/AdaptiveTableLayout

java.lang.IllegalAccessError

Open
#38 1 comment 0 reactions 0 assignees View on GitHub
Dominant language
Java
Stars
1.9k
Forks
238
PR merge metrics
No merged PRs in 30d

Description

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?

Contributor guide

No contributing guide indexed for this repository

Research direction

Start by reproducing the IllegalAccessError when using the adapter from Kotlin and inspect the access to com.cleveroad.adaptivetablelayout.ViewHolderImpl. Done means Kotlin adapter usage no longer raises the access error and works as it does from Java.

Written by the indexing model from the issue text.

Assessment

Tech stack
java, kotlin
Domain
mobile
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
25/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.