-
Type:
Bug
-
Status: Resolved
-
Priority:
P3
-
Resolution: Fixed
-
Affects Version/s: 9, 10, 11
-
Fix Version/s: 12
-
Component/s: client-libs
-
Subcomponent:
-
Introduced In Version:
-
Resolved In Build:b14
-
CPU:x86_64
-
OS: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
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