cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alessio Soldano (JIRA)" <j...@apache.org>
Subject [jira] [Created] (CXF-3634) Avoid risk of deadlock and speed up execution in JDKBugHacks.doHacks()
Date Wed, 06 Jul 2011 14:55:16 GMT
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

        

Mime
View raw message