harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Kelvin Ye (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-3859) [classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object to String
Date Tue, 15 May 2007 03:30:16 GMT
[classlib][jndi] Method remove(int) of LdapName will throw exception when cast the return object
to String
----------------------------------------------------------------------------------------------------------

                 Key: HARMONY-3859
                 URL: https://issues.apache.org/jira/browse/HARMONY-3859
             Project: Harmony
          Issue Type: Bug
          Components: Classlib
         Environment: Linux and Windows
            Reporter: Kelvin Ye


When cast the return object of java.naming.ldap.LdapName.remove(int) to String, harmony will
throw ClassCastException. But RI will successfully run through. Please see the test code below.

    public void testRemove() throws Exception {
        LdapName ln = new LdapName("t=test, t1=test1");
        assertEquals("t=test", (String)ln.remove(1));
    }

-- 
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