J. Duke | 319a3b9 | 2007-12-01 00:00:00 +0000 | [diff] [blame^] | 1 | /* |
2 | * @test | ||||
3 | * @bug 4278094 | ||||
4 | * @summary Ensure that setValuesCaseSensitive() does not leave name | ||||
5 | * in an invalid state. | ||||
6 | */ | ||||
7 | |||||
8 | import com.sun.jndi.ldap.LdapName; | ||||
9 | |||||
10 | public 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 | } |