Skip to content
This repository has been archived by the owner on Mar 23, 2023. It is now read-only.

finalize() is depricated since Java9 #101

Open
karczex opened this issue Dec 4, 2020 · 2 comments
Open

finalize() is depricated since Java9 #101

karczex opened this issue Dec 4, 2020 · 2 comments
Milestone

Comments

@karczex
Copy link

karczex commented Dec 4, 2020

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

@lukaszstolarczuk
Copy link
Member

ref. #80

@karczex karczex added this to the 2.0 milestone Jan 25, 2021
@igchor igchor modified the milestones: 2.0, 1.1 Jan 25, 2021
@KFilipek
Copy link
Contributor

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

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

No branches or pull requests

4 participants