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/04/27 05:04:16 UTC

[jira] Created: (HARMONY-3775) [classlib][beans]java.beans.beancontext.BeanContextSupport.add() does not throw IllegalStateException while the validatePendingAdd() returns false.

[classlib][beans]java.beans.beancontext.BeanContextSupport.add() does not throw IllegalStateException while the validatePendingAdd() returns false.
---------------------------------------------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-3775
                 URL: https://issues.apache.org/jira/browse/HARMONY-3775
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
            Reporter: Leo Li


Here is a testcase:
public void test_add_validate() throws Exception {
        MyBeanContextSupport mybeanContextSupport = new MyBeanContextSupport();
        try {
            mybeanContextSupport.add(new Object());
            fail("should throw IllegalStateException");
        } catch (IllegalStateException e) {
            // expected
        }
    }

private class MyBeanContextSupport extends BeanContextSupport
    {
        protected  boolean validatePendingAdd(Object targetChild)
        {
            return false;
        }        
    }

RI passes.
Harmony fails.

The same thing happens on remove() with validatePendingRemove() returns false.

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


[jira] Closed: (HARMONY-3775) [classlib][beans]java.beans.beancontext.BeanContextSupport.add() does not throw IllegalStateException while the validatePendingAdd() returns false.

Posted by "Leo Li (JIRA)" <ji...@apache.org>.
     [ https://issues.apache.org/jira/browse/HARMONY-3775?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Leo Li closed HARMONY-3775.
---------------------------

    Resolution: Fixed

Fixed on harmony.

> [classlib][beans]java.beans.beancontext.BeanContextSupport.add() does not throw IllegalStateException while the validatePendingAdd() returns false.
> ---------------------------------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-3775
>                 URL: https://issues.apache.org/jira/browse/HARMONY-3775
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Leo Li
>
> Here is a testcase:
> public void test_add_validate() throws Exception {
>         MyBeanContextSupport mybeanContextSupport = new MyBeanContextSupport();
>         try {
>             mybeanContextSupport.add(new Object());
>             fail("should throw IllegalStateException");
>         } catch (IllegalStateException e) {
>             // expected
>         }
>     }
> private class MyBeanContextSupport extends BeanContextSupport
>     {
>         protected  boolean validatePendingAdd(Object targetChild)
>         {
>             return false;
>         }        
>     }
> RI passes.
> Harmony fails.
> The same thing happens on remove() with validatePendingRemove() returns false.

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