Return-Path: Delivered-To: apmail-harmony-dev-archive@www.apache.org Received: (qmail 70517 invoked from network); 26 Jun 2007 10:45:56 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 26 Jun 2007 10:45:56 -0000 Received: (qmail 60523 invoked by uid 500); 26 Jun 2007 10:45:57 -0000 Delivered-To: apmail-harmony-dev-archive@harmony.apache.org Received: (qmail 60495 invoked by uid 500); 26 Jun 2007 10:45:57 -0000 Mailing-List: contact dev-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list dev@harmony.apache.org Received: (qmail 60486 invoked by uid 99); 26 Jun 2007 10:45:57 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2007 03:45:57 -0700 X-ASF-Spam-Status: No, hits=1.2 required=10.0 tests=RCVD_IN_SORBS_WEB,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (herse.apache.org: domain of t.p.ellison@gmail.com designates 64.233.184.231 as permitted sender) Received: from [64.233.184.231] (HELO wr-out-0506.google.com) (64.233.184.231) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 26 Jun 2007 03:45:52 -0700 Received: by wr-out-0506.google.com with SMTP id i22so1174018wra for ; Tue, 26 Jun 2007 03:45:32 -0700 (PDT) DKIM-Signature: a=rsa-sha1; c=relaxed/relaxed; d=gmail.com; s=beta; h=domainkey-signature:received:received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=VeDioaNR51OFPjZ1/V/pfgBdbJOeFHjbX9hlCnZ8X1pRZUUBNDpMryj+oc7DnSCVomYmISuaKGnFVcKjfs+HyeqL52e61p5jodNZfSj+XZymRPofhJFIV3EpboBNbm2tLNMvS7xTeDz+SUStq+U+n6cuay6SX7AnVMNR/E1c/X8= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=beta; h=received:message-id:date:from:user-agent:mime-version:to:subject:references:in-reply-to:x-enigmail-version:content-type:content-transfer-encoding; b=F8mcfj4uw8Z0mC4Br5U/Lw7qRDAA8XehV8XbfGtpI8423Ez6A1TidU+uen9qWJ3UmHswKQEfvxSruSr8/O364ZfqjtWWiLE+IUgJbF3ASp1hYig0oi7tungwSCJKVtM8tm4jedl4cQStJCIRHB7PKeLvvx4ZrIUS1Hp11WKrKjY= Received: by 10.78.206.9 with SMTP id d9mr3015605hug.1182854731633; Tue, 26 Jun 2007 03:45:31 -0700 (PDT) Received: from ?9.20.183.81? ( [195.212.29.92]) by mx.google.com with ESMTP id 7sm107110nfv.2007.06.26.03.45.30 (version=SSLv3 cipher=RC4-MD5); Tue, 26 Jun 2007 03:45:30 -0700 (PDT) Message-ID: <4680EE48.40008@gmail.com> Date: Tue, 26 Jun 2007 11:45:28 +0100 From: Tim Ellison User-Agent: Thunderbird 2.0.0.4 (Windows/20070604) MIME-Version: 1.0 To: dev@harmony.apache.org Subject: Re: [classlib][beans]java.beans.beancontext.BeanContextSupport.getResource throws NullPointerException References: In-Reply-To: X-Enigmail-Version: 0.95.1 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org Leo Li wrote: > Hi, all: > I found that BeanContextSupport.getResource(String name, > BeanContextChild bcc) will throw NullPointerException due to its wrongly > selected classloader. > Here is a testcase: > public void testGetResource(){ > BeanContextChildSupport bean = new BeanContextChildSupport(); > BeanContextSupport beanContextSupport = new BeanContextSupport(); > beanContextSupport.add(bean); > beanContextSupport.getResource("test.txt", bean); > } > > RI passes and Harmony fails. > It is an undetected regression after M1 due to my modification > to BeanContextSupport. > I am not quite sure of the influence of this defect. Applications might > be affected. > Shall we apply a patch for it now or after M2? Can you show us the patch? I'm guessing it is quite straight forward. Regards, Tim