java.lang.IllegalAccessException

Class can not access a member of class C with modifiers "private"

Solutions on the web801

  • via GitHub by lrytz
    , 11 months ago
    Class can not access a member of class C with modifiers "private final"
  • via Oracle Community by 807546, 1 week ago
    Class CallPrivate can not access a member of class A with modifiers "private"
  • Class R$A can not access a member of class R with modifiers "private"
  • Stack trace

    • java.lang.IllegalAccessException: Class can not access a member of class C with modifiers "private" at sun.reflect.Reflection.ensureMemberAccess(Reflection.java:102) at java.lang.reflect.AccessibleObject.slowCheckMemberAccess(AccessibleObject.java:296) at java.lang.reflect.AccessibleObject.checkAccess(AccessibleObject.java:288) at java.lang.reflect.Field.set(Field.java:761)

    Write tip

    You have a different solution? A short tip here would help you and many other users who saw this issue last week.

    Users with the same issue

    3 times, 8 months ago
    2 times, 2 months ago
    Unknown user
    Once, 9 months ago
    Once, 1 year ago
    2 times, 2 months ago
    37 more bugmates