harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Alexey Petrenko (JIRA)" <j...@apache.org>
Subject [jira] Updated: (HARMONY-2466) [classlib][x-management] javax.managment.MBeanAttributeInfo(String,String,null,null) does not throw IntrospectionException
Date Tue, 17 Apr 2007 08:43:15 GMT

     [ https://issues.apache.org/jira/browse/HARMONY-2466?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
]

Alexey Petrenko updated HARMONY-2466:
-------------------------------------

    Summary: [classlib][x-management] javax.managment.MBeanAttributeInfo(String,String,null,null)
does not throw  IntrospectionException  (was: javax.managment.MBeanAttributeInfo(String,String,null,null)
does not throw  IntrospectionException)

> [classlib][x-management] javax.managment.MBeanAttributeInfo(String,String,null,null)
does not throw  IntrospectionException
> ---------------------------------------------------------------------------------------------------------------------------
>
>                 Key: HARMONY-2466
>                 URL: https://issues.apache.org/jira/browse/HARMONY-2466
>             Project: Harmony
>          Issue Type: Bug
>          Components: Classlib
>            Reporter: Artem Aliev
>
> RI throws for javax.managment.MBeanAttributeInfo(String,String,null,null)
> IntrospectionException: getter and setter cannot both be null. Harmony does not
> throw the exception in this case.
> Test for reprodicing:
> import junit.framework.TestCase;
> import javax.management.*;
> public class test extends TestCase  {
>     public void test1 () {  
>        try {    
>            MBeanAttributeInfo obj=new
> MBeanAttributeInfo("str","str",null,null);                                      
>        }  catch (Exception e) { 
>           e.printStackTrace();
>        } 
>     }
> } 
> Output on Sun 1.5
> =================
> .
> Time: 0
> OK (1 test)
> Output on Harmony:
> ==================
> .F
> Time: 0.016
> There was 1 failure:
> 1) test1(test)junit.framework.AssertionFailedError: IntrospectionException
> should be throws
>         at test.test1(test.java:9)
>         at java.lang.reflect.VMReflection.invokeMethod()
> FAILURES!!!
> Tests run: 1,  Failures: 1,  Errors: 0
> Affected tests:
> vts_api_javax_management_MBeanAttributeInfo_CMBeanAttributeInfo_String_String_Method@test_not_null0_0

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


Mime
View raw message