harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Artem Aliev (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2466) javax.managment.MBeanAttributeInfo(String,String,null,null) does not throw IntrospectionException
Date Tue, 05 Dec 2006 14:16:21 GMT
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

        

Mime
View raw message