-
Bug
-
Resolution: Fixed
-
P3
-
9, 10, 11
-
b14
-
x86_64
-
linux
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8253323 | 11.0.10-oracle | Prasanta Sadhukhan | P3 | Resolved | Fixed | b01 |
JDK-8247794 | 11.0.9 | Prasanta Sadhukhan | P3 | Resolved | Fixed | b01 |
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
- backported by
-
JDK-8247794 javax.swing.border.TitledBorder has a memory leak
- Resolved
-
JDK-8253323 javax.swing.border.TitledBorder has a memory leak
- Resolved
- relates to
-
JDK-8209343 Test javax/swing/border/TestTitledBorderLeak.java should be marked as headful
- Resolved
-
JDK-8287707 Last visible JFrame when disposed is leaked in linux
- In Progress