M
mtp
Hello,
i think i've found an unsolvable problem
Let's say i have a class "VeryComplexObject". In one of the method
(which is synchronized) i call in a catch handler
System.runFinalization() because i need to recover resources.
The problem is, several "PrettySimpleObject" get finalized, and in its
finalizer, it must remove some data in "VeryComplexObject", which is locked.
And by the way, at the same time, the EDT is reading data from
"VeryComplexObject" to show them (the read methods of
"VeryComplexObject" are not synchronized).
Have you any idea how to solve this problem?
i think i've found an unsolvable problem
Let's say i have a class "VeryComplexObject". In one of the method
(which is synchronized) i call in a catch handler
System.runFinalization() because i need to recover resources.
The problem is, several "PrettySimpleObject" get finalized, and in its
finalizer, it must remove some data in "VeryComplexObject", which is locked.
And by the way, at the same time, the EDT is reading data from
"VeryComplexObject" to show them (the read methods of
"VeryComplexObject" are not synchronized).
Have you any idea how to solve this problem?