java.lang.IllegalAccessError: try to access class Anonymous$1 from class Anonymous

Oracle Community | 843797 | 1 decade ago
tip
Your exception is missing from the Samebug knowledge base.
Here are the best solutions we found on the Internet.
Click on the to mark the helpful solution and get rewards for you help.
  1. 0

    ANONYMOUS CLASS loaded with a CLASSLOADER results in an IllegalAccessError

    Oracle Community | 1 decade ago | 843797
    java.lang.IllegalAccessError: try to access class Anonymous$1 from class Anonymous

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      try to access class Anonymous$1 from class Anonymous

      at Anonymous.<init>()
    2. Unknown
      Anonymous.<init>
      1. Anonymous.<init>(Anonymous.java:5)
      1 frame
    3. Java RT
      Class.newInstance
      1. java.lang.Class.newInstance0(Native Method)
      2. java.lang.Class.newInstance(Class.java:254)
      2 frames
    4. Unknown
      Indirect.main
      1. Indirect.<init>(Indirect.java:11)
      2. Indirect.main(Indirect.java:15)
      2 frames