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

Controls are leaking through mnemonics and accelerators

    Details

      Description

      To reproduce:
      - run Ensemble,
      - navigate to Menu sample,
      - click Options in sample menu bar
      - navigate back to home page
      - use jvisualvm from JDK bin to generate a heap dump
      - use the following query to see not garbage collected pages:
      select x
      from ensemble.samplepage.SamplePage x

      here is what observed in Find Nearest GC Root from thread dump of those SamplePages:

      keyboardShortcutsHandler > ... > accelerators > ... > Shortcut + C

      ---------------------------------------------

      Second example:
      - use Ensemble from build that doesn't contain changeset 92cdacb550e0 "Ensemble8: Fix for RT-33660 TabPane app is leaking through mnemonics mechanism"
        *or*
        alter TabPaneApp.java in Ensemble8 source code by commenting out the following line:
      radioButton.setMnemonicParsing(false);
      - run this version of Ensemble8,
      - open TabPane sample
      - go to home page
      - use jvisualvm from JDK bin to generate a heap dump
      - use the following query to see not garbage collected pages:
      select x
      from ensemble.samplepage.SamplePage x

      here is what observed in Find Nearest GC Root from thread dump of those SamplePages:

      keyboardShortcutsHandler > ... > accelerators > ... > Alt + T

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jgiles Jonathan Giles
                Reporter:
                mrkam Alexander Kuznetcov (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported: