[jboss-jira] [JBoss JIRA] (WFCORE-4257) Eliminate finalizers in the core codebase
Brian Stansberry (Jira)
issues at jboss.org
Mon Dec 17 22:17:00 EST 2018
Brian Stansberry created WFCORE-4257:
----------------------------------------
Summary: Eliminate finalizers in the core codebase
Key: WFCORE-4257
URL: https://issues.jboss.org/browse/WFCORE-4257
Project: WildFly Core
Issue Type: Enhancement
Components: Management, Server
Reporter: Brian Stansberry
Assignee: Brian Stansberry
The Object.finalize() method was deprecated in Java 9 and use of PhantomReference instead is recommended for cases where simply relying on code to invoke a close() method is insufficient. So, let's get rid of the 3 finalizers in the WF Core codebase.
Use the PhantomReference utility stuff in wildfly-common. That lib is already a dependency of the code that has the various finalize() impls.
--
This message was sent by Atlassian Jira
(v7.12.1#712002)
More information about the jboss-jira
mailing list