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

Oracle Community | 843797 | 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

    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:29)
      2 frames