cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From asold...@apache.org
Subject svn commit: r1143458 - in /cxf/branches/2.4.x-fixes: ./ common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java
Date Wed, 06 Jul 2011 15:08:21 GMT
Author: asoldano
Date: Wed Jul  6 15:08:21 2011
New Revision: 1143458

URL: http://svn.apache.org/viewvc?rev=1143458&view=rev
Log:
Merged revisions 1143452 via svnmerge from 
https://svn.apache.org/repos/asf/cxf/trunk

........
  r1143452 | asoldano | 2011-07-06 16:59:08 +0200 (Wed, 06 Jul 2011) | 2 lines
  
  [CXF-3634] Avoid opening a connection in JDKBugHacks to disable url caching
........

Modified:
    cxf/branches/2.4.x-fixes/   (props changed)
    cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
    svn:mergeinfo = /cxf/trunk:1143452

Propchange: cxf/branches/2.4.x-fixes/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java?rev=1143458&r1=1143457&r2=1143458&view=diff
==============================================================================
--- cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java
(original)
+++ cxf/branches/2.4.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java
Wed Jul  6 15:08:21 2011
@@ -19,6 +19,7 @@
 
 package org.apache.cxf.common.logging;
 
+import java.io.IOException;
 import java.lang.reflect.Method;
 import java.net.URL;
 import java.net.URLConnection;
@@ -64,7 +65,12 @@ final class JDKBugHacks {
                     // Doesn't matter that this JAR doesn't exist - just as long as
                     // the URL is well-formed
                     URL url = new URL("jar:file://dummy.jar!/");
-                    URLConnection uConn = url.openConnection();
+                    URLConnection uConn = new URLConnection(url) {
+                        @Override
+                        public void connect() throws IOException {
+                            // NOOP
+                        }
+                    };
                     uConn.setDefaultUseCaches(false);
                 } catch (Throwable e) {
                     //ignore



Mime
View raw message