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

Alessio Soldano resolved CXF-3634.
----------------------------------

    Resolution: Fixed

> Avoid risk of deadlock and speed up execution in JDKBugHacks.doHacks()
> ----------------------------------------------------------------------
>
>                 Key: CXF-3634
>                 URL: https://issues.apache.org/jira/browse/CXF-3634
>             Project: CXF
>          Issue Type: Improvement
>          Components: Core
>            Reporter: Alessio Soldano
>            Assignee: Alessio Soldano
>             Fix For: 2.4.2, 2.5
>
>
> In order for disabling url caching, JDKBugHacks runs:
> URL url = new URL("jar:file://dummy.jar!/");
> URLConnection uConn = url.openConnection();
> uConn.setDefaultUseCaches(false);
> When having the java.protocol.handler.pkgs system property set, that can lead 
> to deadlocks between the system classloader and the file protocol Handler in 
> particular situations (for instance if the file protocol URLStreamHandler is 
> a signleton).
> Besides that, the code above is really there for the sake of setting 
> defaultUseCaches to false only, so actually opening a connection can be 
> avoided, to speed up the execution.

--
This message is automatically generated by JIRA.
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to