cxf-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dk...@apache.org
Subject svn commit: r1143859 - in /cxf/branches/2.3.x-fixes: ./ common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java
Date Thu, 07 Jul 2011 14:54:56 GMT
Author: dkulp
Date: Thu Jul  7 14:54:55 2011
New Revision: 1143859

URL: http://svn.apache.org/viewvc?rev=1143859&view=rev
Log:
Merged revisions 1143458 via svnmerge from 
https://svn.us.apache.org/repos/asf/cxf/branches/2.4.x-fixes

................
  r1143458 | asoldano | 2011-07-06 11:08:21 -0400 (Wed, 06 Jul 2011) | 9 lines
  
  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.3.x-fixes/   (props changed)
    cxf/branches/2.3.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java

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

Modified: cxf/branches/2.3.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java
URL: http://svn.apache.org/viewvc/cxf/branches/2.3.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java?rev=1143859&r1=1143858&r2=1143859&view=diff
==============================================================================
--- cxf/branches/2.3.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java
(original)
+++ cxf/branches/2.3.x-fixes/common/common/src/main/java/org/apache/cxf/common/logging/JDKBugHacks.java
Thu Jul  7 14:54:55 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