Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8277202

Create a test to cover independent ButtonModel implementation for JToggleButton

    XMLWordPrintable

    Details

      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.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              aivanov Alexey Ivanov
              Reporter:
              aivanov Alexey Ivanov
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated: