I have an enum:
public enum class DrawableRes(public val ord: Int, public val icon: Boolean) {
IC_KEY: DrawableRes(100, true)
IC_BOOK: DrawableRes(101, true)
…
}
If I use it with my Kotlin code, it works fine, but when I try to use it from java code like this:
DrawableRes.IC_BOOK.getOrd()
I get the following error:
[ERROR] … cannot access …DrawableRes
bad class file: …DrawableRes.class(…:DrawableRes.class)
bad RuntimeInvisibleParameterAnnotations attribute: DrawableRes(int,boolean)
Am I doing something wrong. Is it a bug or should I access the enum differently?
I am using 0.6.350.