Duplicate :
|
|
Relates :
|
Any modal dialog is added to the 'modalDialogs' static field of java.awt.Dialog class in modalShow() method. However, this method is called not only the dialog is really shown, but also when it is unblocked by another modal dialog. This leads to the situation when the dialog is added to the list of modal dialogs several times and prevents it from being GCed. The test that can be used to demostrate the problem is attached.
|