jdk-24/jdk/test/com/sun/jndi/ldap/LdapName/Case.java

19 lines
430 B
Java
Raw Normal View History

2007-12-01 00:00:00 +00:00
/*
* @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
}
}