Hello Sergey,
the fix looks fine to me.
--
Thanks,
Alexander.
On 05/21/2015 03:11 PM, Sergey Bylokhov wrote:
Hello.
Please review the fix for jdk9.
RepainManager adds a listener to the SGE.DisplayChangedListener() and
it don't hold a strong reference to this listener. The problem is that
SGE holds a listeners in the WeakHashMap so sometimes the listeners
can be cleared before they are called. Same issue exists in XToolkit.
Bug: https://bugs.openjdk.java.net/browse/JDK-8041654
Webrev can be found at:
http://cr.openjdk.java.net/~serb/8041654/webrev.02