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

Potential memory leak in KeyboardFocusManager

    Details

    • Subcomponent:
    • Resolved In Build:
      beta2
    • CPU:
      generic
    • OS:
      generic

      Description

      >From Scott Violet in evaluation to 4327621.

      KeyboardFocusManager keeps a HashMap that maps from a Window to the
      Component that last had focus in the Window. The HashMap never
      appears to be cleared, thus resulting in keeping all Windows that are
      created from being gc'ed. A simple fix would be to change
      Window.dispose to remove the Window from the HashMap. Another option
      map to use a WeakRef, but dispose may be enough.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                prssunw Prs Prs (Inactive)
                Reporter:
                domsunw Dom Dom (Inactive)
              • Votes:
                0 Vote for this issue
                Watchers:
                0 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved:
                  Imported:
                  Indexed: