blob: 774d93bdf2932e802dad9e5901a66785e216f568 [file] [log] [blame]
J. Duke319a3b92007-12-01 00:00:00 +00001/*
2 * @test
3 * @bug 4278094
4 * @summary Ensure that setValuesCaseSensitive() does not leave name
5 * in an invalid state.
6 */
7
8import com.sun.jndi.ldap.LdapName;
9
10public class Case {
11
12 public static void main(String[] args) throws Exception {
13
14 LdapName name = new LdapName("cn=Kuwabatake Sanjuro");
15 name.setValuesCaseSensitive(false);
16 name.size(); // will throw exception if rdns is null
17 }
18}