I have a `java.lang.IllegalAccessError: tried to a...
# announcements
y
I have a
java.lang.IllegalAccessError: tried to access field  ....
at runtime, all is green in the idea. (using kotlin 1.2.31). Should I fill an issue ?
e
An
IllegalAccessError
is thrown, if you access for example a field that has
isAccessible() == false
https://docs.oracle.com/javase/7/docs/api/java/lang/reflect/AccessibleObject.html#isAccessible(). Depending on where its origin is (= first few lines of the stacktrace), it might or might not be a Kotlin problem.
y
Hum no reflexion used... Just a mix of Class, Inner classes, inlined/reified generics function.
e
Ok thats weird. I'm no JB, but I'd say yes, open an YouTrack issue, especially if you are not doing anything "crazy".
y
Well the intrication of class, generics and inline in this part of code is a bit crazy. But no reflective access, so probably come from kotlinc generated bytecode or compilation should failed. Thanks for answer, I'll try to extract a test case.
OUch : exactly this one.... https://youtrack.jetbrains.com/issue/KT-12126#tab=History (still open, here since 1.0)
e
OK this is for sure not your fault :-) I am not sure if this is possible, but maybe you can upvote the issue somehow? Or add a comment, to increase awareness?
s
whatever you do, do not comment “+1”
just vote on it
y
Lol, it's what I did ;)
👍 1