You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@harmony.apache.org by "Artem Aliev (JIRA)" <ji...@apache.org> on 2006/12/05 15:16:21 UTC

[jira] Created: (HARMONY-2466) javax.managment.MBeanAttributeInfo(String,String,null,null) does not throw IntrospectionException

javax.managment.MBeanAttributeInfo(String,String,null,null) does not throw  IntrospectionException
--------------------------------------------------------------------------------------------------

                 Key: HARMONY-2466
                 URL: http://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.
-
If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

[jira] Updated: (HARMONY-2466) [classlib][x-management] javax.managment.MBeanAttributeInfo(String,String,null,null) does not throw IntrospectionException

Posted by "Alexey Petrenko (JIRA)" <ji...@apache.org>.
     [ 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.