You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Leo Li (JIRA)" <ji...@apache.org> on 2007/05/25 03:00:22 UTC
[jira] Closed: (HARMONY-3763)
[classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext)
does not throw PropertyVetoException while the new bean context has been
vetoed against.
[ https://issues.apache.org/jira/browse/HARMONY-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leo Li closed HARMONY-3763.
---------------------------
Paulex:
Verified. Thank you.
> [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.