java.lang.IllegalAccessException: Class pack2.Other can not access a member of class pack1.Base with modifiers "public"

Coderanch | Ernest Friedman-Hill | 1 decade ago
tip
Click on the to mark the solution that helps you, Samebug will learn from it.
As a community member, you’ll be rewarded for you help.
  1. 0

    Reflection access rules

    Coderanch | 1 decade ago | Ernest Friedman-Hill
    java.lang.IllegalAccessException: Class pack2.Other can not access a member of class pack1.Base with modifiers "public"
  2. 0

    Reflection access rules

    Coderanch | 1 decade ago | Maulin Vasavada
    java.lang.IllegalAccessException: Class pack2.Other can not access a member of class pack1.Base with modifiers "public"
  3. 0

    Bug ID: JDK-4207233 (reflect) can't use reflection to invoke private method in outer class

    sun.com | 2 years ago
    java.lang.IllegalAccessException: Class Class1 can not access a member of class java.util.HashMap$KeySet with modifiers "public"
  4. Speed up your debug routine!

    Automated exception search integrated into your IDE

  5. 0

    Chapter 2. The JBoss JMX Microkernel

    jboss.com | 2 years ago
    java.lang.IllegalAccessException: Class org.jboss.chap2.ex0.ExIAEd can not access a member of class org.jboss.chap2.ex0.ExCtx with modifiers ""
  6. 0

    Chapter 2. The JBoss JMX Microkernel

    jboss.org | 1 year ago
    java.lang.IllegalAccessException: Class org.jboss.chap2.ex0.ExIAEd can not access a member of class org.jboss.chap2.ex0.ExCtx with modifiers ""

  1. musketyr 2 times, last 1 month ago
  2. Handemelindo 1 times, last 1 month ago
7 unregistered visitors
Not finding the right solution?
Take a tour to get the most out of Samebug.

Tired of useless tips?

Automated exception search integrated into your IDE

Root Cause Analysis

  1. java.lang.IllegalAccessException

    Class pack2.Other can not access a member of class pack1.Base with modifiers "public"

    at sun.reflect.Reflection.ensureMemberAccess()
  2. Java RT
    Method.invoke
    1. sun.reflect.Reflection.ensureMemberAccess(Reflection.java:57)
    2. java.lang.reflect.Method.invoke(Method.java:317)
    2 frames
  3. pack2
    Other.main
    1. pack2.Other.main(Other.java:10)
    1 frame