korge icon indicating copy to clipboard operation
korge copied to clipboard

Convert Closeable -> AutoCloseable

Open soywiz opened this issue 2 years ago • 1 comments
trafficstars

In Kotlin 1.8, AutoCloseable was included. A first step could be making Closeable extend AutoCloseable. And then typealiasing it. Expending the interface is okay, typealiasing it will be a binary-breaking change, and should be done only in major version changes.

soywiz avatar Jul 11 '23 11:07 soywiz

Context2d has a conflict with AutoCloseable. It inherit from VectorBuilder wich contains a close method. The close method will be deprecated in favor of closePath on 4.1.0 and remove on 4.2.0.

ygdrasil-io avatar Aug 10 '23 00:08 ygdrasil-io