Return-Path: X-Original-To: apmail-cxf-commits-archive@www.apache.org Delivered-To: apmail-cxf-commits-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 526386167 for ; Wed, 6 Jul 2011 15:08:46 +0000 (UTC) Received: (qmail 99956 invoked by uid 500); 6 Jul 2011 15:08:45 -0000 Delivered-To: apmail-cxf-commits-archive@cxf.apache.org Received: (qmail 99913 invoked by uid 500); 6 Jul 2011 15:08:45 -0000 Mailing-List: contact commits-help@cxf.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@cxf.apache.org Delivered-To: mailing list commits@cxf.apache.org Received: (qmail 99906 invoked by uid 99); 6 Jul 2011 15:08:45 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 15:08:45 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=5.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO eris.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 06 Jul 2011 15:08:43 +0000 Received: from eris.apache.org (localhost [127.0.0.1]) by eris.apache.org (Postfix) with ESMTP id 04A05238896F for ; Wed, 6 Jul 2011 15:08:22 +0000 (UTC) Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit 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 -0000 To: commits@cxf.apache.org From: asoldano@apache.org X-Mailer: svnmailer-1.0.8 Message-Id: <20110706150822.04A05238896F@eris.apache.org> X-Virus-Checked: Checked by ClamAV on apache.org 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