harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Paulex Yang (JIRA)" <j...@apache.org>
Subject [jira] Assigned: (HARMONY-3763) [classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext) does not throw PropertyVetoException while the new bean context has been vetoed against.
Date Fri, 27 Apr 2007 02:19:15 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Paulex Yang reassigned HARMONY-3763:
------------------------------------

    Assignee: Paulex Yang

> [classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext) does
not throw PropertyVetoException while the new bean context has been vetoed against.
> ------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3763
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3763
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>         Assigned To: Paulex Yang
>         Attachments: patch-3763.diff
>
>
> Here is a testcase:
> public void test() throws Exception
>     {
>         BeanContextChildSupport beanContextChildSupport = new BeanContextChildSupport();
>         beanContextChildSupport.addVetoableChangeListener("beanContext",
>                 new MyVetoableChangeListener());
>         try {
>             beanContextChildSupport.setBeanContext(new BeanContextSupport());
>             fail("should throw PropertyVetoException");
>         } catch (PropertyVetoException e) {
>             // expected
>         }
>         
>     }
>     
>     
>     class MyVetoableChangeListener implements VetoableChangeListener
>     {
>         public void vetoableChange(PropertyChangeEvent arg0) throws PropertyVetoException
{
>             throw new PropertyVetoException("TESTSTRING", null);
>         }
>     }
> RI passes.
> Harmony fails.

-- 
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.


Mime
View raw message