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:02:16 UTC
[jira] Closed: (HARMONY-3830)
[classlib][beans]java.beans.beancontext.BeanContextServicesSupport.addService(Class
serviceClass, BeanContextServiceProvider bcsp, boolean fireEvent) should
return true even if fireEvent = false
[ https://issues.apache.org/jira/browse/HARMONY-3830?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Leo Li closed HARMONY-3830.
---------------------------
Paulex, thanks. Verified.
Leo.
> [classlib][beans]java.beans.beancontext.BeanContextServicesSupport.addService(Class serviceClass, BeanContextServiceProvider bcsp, boolean fireEvent) should return true even if fireEvent = false
> --------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
>
> Key: HARMONY-3830
> URL: https://issues.apache.org/jira/browse/HARMONY-3830
> Project: Harmony
> Issue Type: Bug
> Components: Classlib
> Reporter: Leo Li
> Assigned To: Paulex Yang
> Attachments: patch-3830.diff
>
>
> Here is a testcase:
> public void testBeanContextServicesSupport() {
> MockBeanContextServicesSupport mockBeanContextServicesSupport = new MockBeanContextServicesSupport();
> boolean result = mockBeanContextServicesSupport.addService(MockService.class, new MockBeanContextServiceProvider(), false);
> assertTrue(result);
> }
> public static class MockBeanContextServicesSupport extends
> BeanContextServicesSupport {
> private static final long serialVersionUID = 1L;
> public boolean addService(Class serviceClass,
> BeanContextServiceProvider bcsp, boolean fireEvent) {
> return super.addService(serviceClass, bcsp, fireEvent);
> }
> }
> public static class MockService implements Serializable {
> private static final long serialVersionUID = 1L;
> }
> public static class MockBeanContextServiceProvider implements
> BeanContextServiceProvider {
> public Iterator getCurrentServiceSelectors(BeanContextServices arg0,
> Class arg1) {
> return null;
> }
> public Object getService(BeanContextServices arg0, Object arg1,
> Class arg2, Object arg3) {
> return null;
> }
> public void releaseService(BeanContextServices arg0, Object arg1,
> Object arg2) {
> }
> }
> 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.