[macos] Ensure initialisation of sun/lwawt/macosx/CAccessibility in CommonComponentAccessibility.m

XMLWordPrintable

    • Type: Bug
    • Resolution: Duplicate
    • Priority: P3
    • 18
    • Affects Version/s: 18
    • Component/s: client-libs

      n src/java.desktop/macosx/native/libawt_lwawt/awt/CommonComponentAccessibility.m
      accessibilityHitTest()
      uses a reference to the class sun/lwawt/macosx/CAccessibility
      Usually this will be initialised before this code is invoked on the custom control by the macOS accessibility APIs but it is possible that it is not.
      So we should ensure it is initialised.
      This hasn't yet been seen in an app but was noticed by observation since
      this is very similar to https://bugs.openjdk.java.net/browse/JDK-8274326 but was introduced separately and is currently only an issue in JDK 18

            Assignee:
            Alexander Zuev
            Reporter:
            Philip Race
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: