[ 
https://issues.apache.org/jira/browse/CXF-8615?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Andriy Redko updated CXF-8615:
------------------------------
    Description: 
The JDK18 will deprecate finalizers for removal [1], in CXF there are few 
places where finalizers are being used and should be replaced by cleaners [2], 
[3] (or removed altogether).

 

rt/frontend/simple/src/main/java/org/apache/cxf/frontend/ClientProxy.java
rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConduit.java
services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/WSDiscoveryClient.java

 

[1] [https://openjdk.java.net/jeps/421
[2] 
[https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/ref/Cleaner.html
[3] [https://bugs.openjdk.java.net/browse/JDK-8253568]
[4] 
https://stuartmarks.wordpress.com/2022/04/27/why-write-an-empty-finalize-method/
 

  was:
The JDK18 will deprecate finalizers for removal [1], in CXF there are few 
places where finalizers are being used and should be replaced by cleaners [2], 
[3] (or removed altogether).

 

rt/frontend/simple/src/main/java/org/apache/cxf/frontend/ClientProxy.java
rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConduit.java
services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/WSDiscoveryClient.java

 

[1] [https://openjdk.java.net/jeps/421
[2] 
[https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/ref/Cleaner.html
[3] [https://bugs.openjdk.java.net/browse/JDK-8253568]


> Remove/Replace finalizers usage with Cleaners
> ---------------------------------------------
>
>                 Key: CXF-8615
>                 URL: https://issues.apache.org/jira/browse/CXF-8615
>             Project: CXF
>          Issue Type: Improvement
>            Reporter: Andriy Redko
>            Assignee: Andriy Redko
>            Priority: Major
>
> The JDK18 will deprecate finalizers for removal [1], in CXF there are few 
> places where finalizers are being used and should be replaced by cleaners 
> [2], [3] (or removed altogether).
>  
> rt/frontend/simple/src/main/java/org/apache/cxf/frontend/ClientProxy.java
> rt/transports/jms/src/main/java/org/apache/cxf/transport/jms/JMSConduit.java
> services/ws-discovery/ws-discovery-api/src/main/java/org/apache/cxf/ws/discovery/WSDiscoveryClient.java
>  
> [1] [https://openjdk.java.net/jeps/421
> [2] 
> [https://docs.oracle.com/en/java/javase/17/docs/api/java.base/java/lang/ref/Cleaner.html
> [3] [https://bugs.openjdk.java.net/browse/JDK-8253568]
> [4] 
> https://stuartmarks.wordpress.com/2022/04/27/why-write-an-empty-finalize-method/
>  



--
This message was sent by Atlassian Jira
(v8.20.7#820007)

Reply via email to