On 04/11/2018 07:05 AM, Alexey Ivanov wrote:
Please review the fix for jdk11:
BufImgSurfaceData.ICMColorData uses finalize() to dispose of native
2D components usually use Java 2D Disposer. It can be used here too,
and the now deprecated finalize() can be removed consequently.
I ran SwingSet2 and Java2Demo.
When BufImgSurfaceData.ICMColorData objects become unreachable,
BufImg_Dispose_ICMColorData gets called and the associated native
resources are freed.
Thank you in advance.