harmony-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Tim Ellison <t.p.elli...@gmail.com>
Subject Re: [classlib][beans]java.beans.beancontext.BeanContextSupport.getResource throws NullPointerException
Date Tue, 26 Jun 2007 10:45:28 GMT
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

Mime
View raw message