Return-Path: Delivered-To: apmail-geronimo-dev-archive@www.apache.org Received: (qmail 67772 invoked from network); 7 Sep 2009 03:12:23 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.3) by minotaur.apache.org with SMTP; 7 Sep 2009 03:12:23 -0000 Received: (qmail 78710 invoked by uid 500); 7 Sep 2009 03:12:22 -0000 Delivered-To: apmail-geronimo-dev-archive@geronimo.apache.org Received: (qmail 78571 invoked by uid 500); 7 Sep 2009 03:12:22 -0000 Mailing-List: contact dev-help@geronimo.apache.org; run by ezmlm Precedence: bulk list-help: list-unsubscribe: List-Post: Reply-To: dev@geronimo.apache.org List-Id: Delivered-To: mailing list dev@geronimo.apache.org Received: (qmail 78563 invoked by uid 99); 7 Sep 2009 03:12:22 -0000 Received: from nike.apache.org (HELO nike.apache.org) (192.87.106.230) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 03:12:22 +0000 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 07 Sep 2009 03:12:19 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 07905234C046 for ; Sun, 6 Sep 2009 20:11:58 -0700 (PDT) Message-ID: <1005271828.1252293118030.JavaMail.jira@brutus> Date: Sun, 6 Sep 2009 20:11:58 -0700 (PDT) From: "Ivan (JIRA)" To: dev@geronimo.apache.org Subject: [jira] Resolved: (GERONIMO-4785) "useCaches" property of JarFileUrlConnection doesn't work In-Reply-To: <515759764.1249477815310.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/GERONIMO-4785?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Ivan resolved GERONIMO-4785. ---------------------------- Resolution: Fixed Fix Version/s: 2.2 2.1.5 Commit changes to trunk At revision: 811979, 2.1.5 At revision: 811978, 2.2 At revision: 811977. Thanks for the patch, Jack ! > "useCaches" property of JarFileUrlConnection doesn't work > --------------------------------------------------------- > > Key: GERONIMO-4785 > URL: https://issues.apache.org/jira/browse/GERONIMO-4785 > Project: Geronimo > Issue Type: Bug > Security Level: public(Regular issues) > Components: kernel > Affects Versions: 2.1.4 > Environment: Sun JDK 1.5.0.19 > Reporter: Masayoshi Yamashita > Fix For: 2.1.5, 2.2 > > Attachments: GERONIMO-4785.patch > > > When executing the following code on Geronimo server, > ===================================================================== > ClassLoader loader = Thread.currentThread().getContextClassLoader(); > URL url = loader.getResource("javax/servlet/http/"); > JarURLConnection conn1 = (JarURLConnection) url.openConnection(); > conn1.setUseCaches(false); > JarFile jarFile1 = conn1.getJarFile(); > JarURLConnection conn2 = (JarURLConnection) url.openConnection(); > conn2.setUseCaches(false); > JarFile jarFile2 = conn2.getJarFile(); > System.out.println(jarFile1); > System.out.println(jarFile2); > ===================================================================== > there is a problem that "jarFile1" and "jarFile2" are same instances. > Also, it is described in the javadoc of "useCaches" field as follows. > "If false, the protocol must always try to get a fresh copy of the object." > "org.apache.geronimo.kernel.classloader.JarFileUrlConnection" must return a different instance, when "useCaches" is false. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.