java.lang.IllegalAccessError: try to access field javax.swing.ButtonGroup.selection from class javax.swing.IllegalAccessSample

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

    Subclass access to a JDK base class package field throws IllegalAccessError

    Oracle Community | 1 decade ago | 843797
    java.lang.IllegalAccessError: try to access field javax.swing.ButtonGroup.selection from class javax.swing.IllegalAccessSample

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      try to access field javax.swing.ButtonGroup.selection from class javax.swing.IllegalAccessSample

      at javax.swing.IllegalAccessSample.<init>()
    2. Java RT
      IllegalAccessSample.main
      1. javax.swing.IllegalAccessSample.<init>(IllegalAccessSample.java:13)
      2. javax.swing.IllegalAccessSample.main(IllegalAccessSample.java:21)
      2 frames