harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Leo Li (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3763) [classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext) does not throw PropertyVetoException while the new bean context has been vetoed against.
Date Thu, 26 Apr 2007 08:33:15 GMT
[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
            Reporter: Leo Li


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