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/26 10:33:15 UTC
[jira] Created: (HARMONY-3763)
[classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext)
does not throw PropertyVetoException while the new bean context has been
vetoed against.
[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.
[jira] Resolved: (HARMONY-3763)
[classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext)
does not throw PropertyVetoException while the new bean context has been
vetoed against.
Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Paulex Yang resolved HARMONY-3763.
----------------------------------
Resolution: Fixed
Leo, patch applied at r537720, please verify, thanks.
> [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.
[jira] Updated: (HARMONY-3763)
[classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext)
does not throw PropertyVetoException while the new bean context has been
vetoed against.
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leo Li updated HARMONY-3763:
----------------------------
Attachment: patch-3763.diff
Will somebody try the patch?
> [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
> 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.
[jira] Assigned: (HARMONY-3763)
[classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext)
does not throw PropertyVetoException while the new bean context has been
vetoed against.
Posted by "Paulex Yang (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Closed: (HARMONY-3763)
[classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext)
does not throw PropertyVetoException while the new bean context has been
vetoed against.
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ 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.
[jira] Updated: (HARMONY-3763)
[classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext)
does not throw PropertyVetoException while the new bean context has been
vetoed against.
Posted by "Leo Li (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leo Li updated HARMONY-3763:
----------------------------
Patch Info: [Patch Available]
> [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
> 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.
[jira] Updated: (HARMONY-3763)
[classlib][beans]java.beans.BeanContextChildSupport.setBeanContext(BeanContext)
does not throw PropertyVetoException while the new bean context has been
vetoed against.
Posted by "Alexey Varlamov (JIRA)" <ji...@apache.org>.
[ https://issues.apache.org/jira/browse/HARMONY-3763?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Alexey Varlamov updated HARMONY-3763:
-------------------------------------
Component/s: Classlib
> [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
>
> 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.