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

javax.swing.border.TitledBorder has a memory leak

XMLWordPrintable

    • 9
    • b14
    • x86_64
    • linux

        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


              psadhukhan Prasanta Sadhukhan
              webbuggrp Webbug Group
              Votes:
              0 Vote for this issue
              Watchers:
              8 Start watching this issue

                Created:
                Updated:
                Resolved: