7038838: Unspecified NPE in java.net.IDN methods

Reviewed-by: liach, dfuchs
This commit is contained in:
Jaikiran Pai 2024-12-03 02:34:20 +00:00
parent 325366ee1d
commit 24983dd4c1
2 changed files with 51 additions and 0 deletions

View file

@ -66,6 +66,9 @@ import jdk.internal.icu.text.UCharacterIterator;
* Applications are responsible for taking adequate security measures when using
* international domain names.
*
* <p>Unless otherwise specified, passing a {@code null} argument to any method
* in this class will cause a {@link NullPointerException} to be thrown.
*
* @spec https://www.rfc-editor.org/info/rfc1122
* RFC 1122: Requirements for Internet Hosts - Communication Layers
* @spec https://www.rfc-editor.org/info/rfc1123