blob: a2f2821dd233a5555dacd64a0f5ff334e11b6efb [file] [log] [blame]
/*
* @test
* @bug 4892070
* @summary java gets hung in
* com.sun.jndi.ldap.LdapName$TypeAndValue.unescapeValue()
*/
import com.sun.jndi.ldap.LdapName;
public class UnescapeTest {
public static void main(String[] args) {
try {
// The buggy code hangs in the method unescapeAttributeValue()
System.out.println(LdapName.unescapeAttributeValue("\\uvw"));
} catch (IllegalArgumentException e) {
System.out.println("Caught the right exception");
}
}
}