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

[macos14] JTable$AccessibleJTable selection listener is called after upgrading to MAC OS Sonoma 14

XMLWordPrintable

    • unknown
    • os_x

      Originally Posted: https://github.com/adoptium/adoptium-support/issues/920

      ### Please provide a brief summary of the bug

      After migrating to latest MAC OS Sonoma 14.0 (23A344) we are facing problems caused the JTable$AccessibleJTable selection listener.
      On the older MAC OS or Windows we do not see this listener being called.
      The call stack

      ```
      at javax.swing.JTable$AccessibleJTable.getAccessibleChild(JTable.java:7164) ~[?:?]
      at javax.swing.JTable$AccessibleJTable.getAccessibleAt(JTable.java:7554) ~[?:?]
      at javax.swing.JTable$AccessibleJTable.valueChanged(JTable.java:7074) ~[?:?]
      at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:219) ~[?:?]
      at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:199) ~[?:?]
      at javax.swing.DefaultListSelectionModel.fireValueChanged(DefaultListSelectionModel.java:246) ~[?:?]
      at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:443) ~[?:?]
      at javax.swing.DefaultListSelectionModel.changeSelection(DefaultListSelectionModel.java:453) ~[?:?]
      at javax.swing.DefaultListSelectionModel.removeSelectionIntervalImpl(DefaultListSelectionModel.java:614) ~[?:?]
      at javax.swing.DefaultListSelectionModel.clearSelection(DefaultListSelectionModel.java:458) ~[?:?]
      at javax.swing.JTable.clearSelection(JTable.java:2124) ~[?:?]
      ```


      Can you please help us understand why this gets called only on the latest mac os ?

      Regards,

      ### Please provide steps to reproduce where possible

      Do some row selection in BTable

      ### Expected Results

      On windows or old mac os JTable$AccessibleJTable is not in the listenerList list from DefaultListSelectionModel

      ### Actual Results

      the listener is called

      ### What Java Version are you using?

      openjdk 11.0.16.1 2022-08-12

      ### What is your operating system and platform?

      MAC OS Sonoma 14

      ### How did you install Java?

      _No response_

      ### Did it work before?

      ```Shell
      before upgrading to this MAC os version
      ```


      ### Did you test with the latest update version?

      ```Shell
      no
      ```


      ### Did you test with other Java versions?

      ```Shell
      no
      ```


      ### Relevant log output

      _No response_

            Unassigned Unassigned
            karianna Martijn Verburg
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: