JDK-8276986 : Cannot be cast to javax.swing.JToggleButton$ToggleButtonModel in 8u311
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 7u331,8u311
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • Submitted: 2021-11-11
  • Updated: 2021-11-23
  • Resolved: 2021-11-19
Related Reports
Duplicate :  
Relates :  
Description
After upgrading to Java 8 update 311, 
java.lang.ClassCastException: ....swing.FCheckBox$FCheckBoxModel cannot be cast to javax.swing.JToggleButton$ToggleButtonModel
Exception thrown.

java.lang.ClassCastException: com.xxxxxxx.swing.FCheckBox$FCheckBoxModel
cannot be cast to javax.swing.JToggleButton$ToggleButtonModel
        at javax.swing.LayoutFocusTraversalPolicy.accept(…)
        at javax.swing.SortingFocusTraversalPolicy.getComponentAfter(…)
        at javax.swing.LayoutFocusTraversalPolicy.getComponentAfter(…)
        at java.awt.Component.getNextFocusCandidate(…)
        at java.awt.Component.transferFocus(…)
        at java.awt.Component.nextFocus(…)
        at java.awt.Component.transferFocus(…)
        at java.awt.DefaultKeyboardFocusManager.focusNextComponent(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.processKeyEvent(Unknown Source)
        at java.awt.Component.dispatchEventImpl(Unknown Source)
        at java.awt.Container.dispatchEventImpl(Unknown Source)
        at java.awt.Component.dispatchEvent(Unknown Source)
        at java.awt.KeyboardFocusManager.redispatchEvent(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.dispatchKeyEvent(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.preDispatchKeyEvent(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.typeAheadAssertions(Unknown Source)
        at java.awt.DefaultKeyboardFocusManager.dispatchEvent(Unknown Source)

No issues with 8u301.
Comments
BPR label moved to the duplicate bug - JDK-8182577
23-11-2021

The fix for JDK-8182577 has been backported to 8u.
19-11-2021

This is duplicate of JDK-8182577.
15-11-2021