jdk/test/com/sun/jndi/ldap/LdapName/Case.java
author duke
Sat, 01 Dec 2007 00:00:00 +0000
changeset 2 90ce3da70b43
child 8177 7f5ce6c05820
permissions -rw-r--r--
Initial load

/*
 * @test
 * @bug 4278094
 * @summary Ensure that setValuesCaseSensitive() does not leave name
 *      in an invalid state.
 */

import com.sun.jndi.ldap.LdapName;

public class Case {

    public static void main(String[] args) throws Exception {

        LdapName name = new LdapName("cn=Kuwabatake Sanjuro");
        name.setValuesCaseSensitive(false);
        name.size();    // will throw exception if rdns is null
    }
}