Is there a way to access a parent of a parent fiel...
# getting-started
t
Is there a way to access a parent of a parent field via kotlin reflection without relying on kotlin reflect?
Copy code
javaClass.superclass.
works for the 1st level parent but
Copy code
javaClass.superclass.javaClass.superclass.
Does not for the second one 😞
r
Shouldn't that just be
javaClass.superClass.superClass
?
t
Actually no but I found my main issue Google that prevent reflection on that field 😞 Accessing hidden field Landroid/widget/TextView$CharWrapper;->mChars:[C (max-target-o, reflection, denied)