java.lang.IllegalAccessError: class javax.swing.JFormattedTextField$CommitAction cannot access its superclass javax.swing.JTextField$NotifyAction

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

    Why JSpinner cannot work?

    Oracle Community | 1 decade ago | 807577
    java.lang.IllegalAccessError: class javax.swing.JFormattedTextField$CommitAction cannot access its superclass javax.swing.JTextField$NotifyAction

    Root Cause Analysis

    1. java.lang.IllegalAccessError

      class javax.swing.JFormattedTextField$CommitAction cannot access its superclass javax.swing.JTextField$NotifyAction

      at java.lang.ClassLoader.defineClass0()
    2. Java RT
      JSpinner.<init>
      1. java.lang.ClassLoader.defineClass0(Native Method)
      2. java.lang.ClassLoader.defineClass(ClassLoader.java:486)
      3. java.security.SecureClassLoader.defineClass(SecureClassLoader.java:111)
      4. java.net.URLClassLoader.defineClass(URLClassLoader.java:248)
      5. java.net.URLClassLoader.access$100(URLClassLoader.java:56)
      6. java.net.URLClassLoader$1.run(URLClassLoader.java:195)
      7. java.security.AccessController.doPrivileged(Native Method)
      8. java.net.URLClassLoader.findClass(URLClassLoader.java:188)
      9. java.lang.ClassLoader.loadClass(ClassLoader.java:297)
      10. sun.misc.Launcher$AppClassLoader.loadClass(Launcher.java:286)
      11. java.lang.ClassLoader.loadClass(ClassLoader.java:253)
      12. java.lang.ClassLoader.loadClassInternal(ClassLoader.java:313)
      13. javax.swing.JFormattedTextField.<clinit>(JFormattedTextField.java:157)
      14. javax.swing.JSpinner$DefaultEditor.<init>(JSpinner.java:583)
      15. javax.swing.JSpinner$NumberEditor.<init>(JSpinner.java:1139)
      16. javax.swing.JSpinner$NumberEditor.<init>(JSpinner.java:1090)
      17. javax.swing.JSpinner.createEditor(JSpinner.java:189)
      18. javax.swing.JSpinner.<init>(JSpinner.java:96)
      18 frames
    3. test
      Application4.main
      1. test.Frame7.<init>(Frame7.java:40)
      2. test.Application4.<init>(Application4.java:20)
      3. test.Application4.main(Application4.java:49)
      3 frames