JDK-8277202 : Create a test to cover independent ButtonModel implementation for JToggleButton
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 8u311,10
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2021-11-16
  • Updated: 2021-11-16
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbd_majorUnresolved
Related Reports
Relates :  
Relates :  
Description
The fix for JDK-8182577 provides a test, DefaultButtonModelCrashTest.java, which uses a custom ButtonModel that is a subclass of DefaultButtonModel.

However, it's possible to implement ButtonModel interface which is not a subclass of DefaultButtonModel. ClassCastException should not be thrown.