Return-Path: Delivered-To: apmail-incubator-river-commits-archive@locus.apache.org Received: (qmail 9060 invoked from network); 30 Mar 2007 06:02:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 30 Mar 2007 06:02:46 -0000 Received: (qmail 91351 invoked by uid 500); 30 Mar 2007 06:02:54 -0000 Delivered-To: apmail-incubator-river-commits-archive@incubator.apache.org Received: (qmail 91336 invoked by uid 500); 30 Mar 2007 06:02:53 -0000 Mailing-List: contact river-commits-help@incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: river-dev@incubator.apache.org Delivered-To: mailing list river-commits@incubator.apache.org Received: (qmail 91327 invoked by uid 99); 30 Mar 2007 06:02:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 23:02:53 -0700 X-ASF-Spam-Status: No, hits=-100.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Thu, 29 Mar 2007 23:02:45 -0700 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 2A89F714063 for ; Thu, 29 Mar 2007 23:02:25 -0700 (PDT) Message-ID: <22993529.1175234545128.JavaMail.jira@brutus> Date: Thu, 29 Mar 2007 23:02:25 -0700 (PDT) From: "Mark Brouwer (JIRA)" To: river-commits@incubator.apache.org Subject: [jira] Created: (RIVER-19) PreferredClassLoader doesn't implement preferred semantics for getResources(String) MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org PreferredClassLoader doesn't implement preferred semantics for getResources(String) ----------------------------------------------------------------------------------- Key: RIVER-19 URL: https://issues.apache.org/jira/browse/RIVER-19 Project: River Issue Type: Bug Reporter: Mark Brouwer While {{PreferredClassLoader.getResource(String)}} obeys preferred classes semantics, there is no overridden {{getResources(String)}} method that does the same. This can lead to nasty consequences with the service provider mechanism as is used throughout the JDK and JTSK code, namely definitions for service providers are made visible through {{getResources(String)}} while the implementing classes might have been shielded due to the PREFERRED.LIST effective. Up to J2SE 1.4.2 it was not possible to implement preferred classes semantics as {{ClassLoader.getResources(String)}} was declared {{final}}, but as soon as the Jini specs require J2SE 5.0 as minimum we are safe to implement the correct behavior for {{PreferredClassLoader.getResources(String)}}, see also JDC bug [4432218|http://bugs.sun.com/bugdatabase/view_bug.do?bug_id=4432218]. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.