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

javax.swing.border.TitledBorder has a memory leak

    Details

    • Subcomponent:
    • Introduced In Version:
      9
    • Resolved In Build:
      b14
    • CPU:
      x86_64
    • OS:
      linux

      Backports

        Description

        ADDITIONAL SYSTEM INFORMATION :
        Pure Java bug - any instance of JDK 10.0.1

        A DESCRIPTION OF THE PROBLEM :
        The method javax.swing.border.TitledBorder.installPropertyChangeListeners() makes an anonymous listener object with a weak reference to TitledBorder. However, this logic is flawed as the listener object contains a hard reference (this$0) to the TitledBorder object, so the TitledBorder instance is never freed.

        I actually see leaks in my application due to this. Screenshot: https://botcompany.de/1004590/raw/1101318


        FREQUENCY : always


          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  psadhukhan Prasanta Sadhukhan
                  Reporter:
                  webbuggrp Webbug Group
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  5 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: