Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

finalize() in java.lang.Object has been deprecated #720

Open
jmehrens opened this issue Mar 6, 2024 · 0 comments
Open

finalize() in java.lang.Object has been deprecated #720

jmehrens opened this issue Mar 6, 2024 · 0 comments
Labels
enhancement New feature or request

Comments

@jmehrens
Copy link
Contributor

jmehrens commented Mar 6, 2024

The finalize() in java.lang.Object has been deprecated in JDK 9. Various classes in JakartaMail implement a finalizer that should simply be removed.

This ticket can only be completed once #709 is completed.

Goals for this ticket would be:

  1. Remove all finalizer methods from classes.
  2. Ensure that the existing close method for that class has the proper try/finally to ensure no unexpected failure prevent freeing the resource. Most classes need to be updated to cover this case.
@jmehrens jmehrens added the enhancement New feature or request label Mar 6, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant