[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.
|