Title
y

ylemoigne

04/15/2018, 7:57 PM
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

elexx

04/15/2018, 8:09 PM
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

ylemoigne

04/15/2018, 8:16 PM
Hum no reflexion used... Just a mix of Class, Inner classes, inlined/reified generics function.
e

elexx

04/15/2018, 8:18 PM
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

ylemoigne

04/15/2018, 8:22 PM
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

elexx

04/15/2018, 8:48 PM
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

Shawn

04/15/2018, 9:00 PM
whatever you do, do not comment “+1”
just vote on it
y

ylemoigne

04/15/2018, 9:00 PM
Lol, it's what I did ;)
👍 1