9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 4278094
27 * @summary Ensure that setValuesCaseSensitive() does not leave name
28 * in an invalid state.
29 */
30
31 import com.sun.jndi.ldap.LdapName;
32
33 public class Case {
34
35 public static void main(String[] args) throws Exception {
36
37 LdapName name = new LdapName("cn=Kuwabatake Sanjuro");
38 name.setValuesCaseSensitive(false);
39 name.size(); // will throw exception if rdns is null
40 }
41 }
|
9 * This code is distributed in the hope that it will be useful, but WITHOUT
10 * ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or
11 * FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License
12 * version 2 for more details (a copy is included in the LICENSE file that
13 * accompanied this code).
14 *
15 * You should have received a copy of the GNU General Public License version
16 * 2 along with this work; if not, write to the Free Software Foundation,
17 * Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA.
18 *
19 * Please contact Oracle, 500 Oracle Parkway, Redwood Shores, CA 94065 USA
20 * or visit www.oracle.com if you need additional information or have any
21 * questions.
22 */
23
24 /*
25 * @test
26 * @bug 4278094
27 * @summary Ensure that setValuesCaseSensitive() does not leave name
28 * in an invalid state.
29 * @modules java.naming/com.sun.jndi.ldap
30 */
31
32 import com.sun.jndi.ldap.LdapName;
33
34 public class Case {
35
36 public static void main(String[] args) throws Exception {
37
38 LdapName name = new LdapName("cn=Kuwabatake Sanjuro");
39 name.setValuesCaseSensitive(false);
40 name.size(); // will throw exception if rdns is null
41 }
42 }
|