pmemkv-java icon indicating copy to clipboard operation
pmemkv-java copied to clipboard

finalize() is depricated since Java9

Open karczex opened this issue 5 years ago • 2 comments

ISSUE: Finalize is depricated since Java9

Details

Because of problems described in finalize() documentation, this method should be removed from Builder class. https://docs.oracle.com/javase/9/docs/api/java/lang/Object.html#finalize--

According to java documentation classes Database and Builder should implement AutoCloseable interface.

Requested priority: Show Sopper if project will migrate to higher Java version, Low otherwise

karczex avatar Dec 04 '20 15:12 karczex

ref. #80

lukaszstolarczuk avatar Dec 04 '20 16:12 lukaszstolarczuk

Here is a short overview what is possible on newer Java in case of finalize deprecation. https://stackoverflow.com/questions/52879761/should-java-9-cleaner-be-preferred-to-finalization

KFilipek avatar Feb 24 '21 10:02 KFilipek