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

CommonComponentAccessibility.createWithParent isWrapped causes mem leak

    XMLWordPrintable

    Details

      Backports

        Description

        In the method

        +[CommonComponentAccessibility createWithParent:accessible:role:index:withEnv:withView:isWrapped:]

        the isWrapped arg is used to create an a11y element which is wrapped into an object that does not have direct peer in Java like ListRowAccessibility, TableRowAccessibility. In the current implementation these objects leak, because when the wrapped element is created (isWrapped == YES), the native pointer to the element is rewritten in the associated java peer (the 'accessible' arg) and the element object is then released via the CFRetainedResource mechanism. However the wrapping object (ListRowAccessibility, TableRowAccessibility) is never released.

        The wrapping logic should thus be reimplemented.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                ant Anton Tarasov
                Reporter:
                ant Anton Tarasov
                Votes:
                0 Vote for this issue
                Watchers:
                5 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: