8223725: j.l.c.MethodHandleDesc::of throws undocumented exception IllegalArgumentException
authorvromero
Tue, 21 May 2019 15:59:46 -0400 (2019-05-21)
changeset 54967 3adf893a6861
parent 54966 508285c7c6f7
child 54968 c13b1382aa30
8223725: j.l.c.MethodHandleDesc::of throws undocumented exception IllegalArgumentException Reviewed-by: rriggs
src/java.base/share/classes/java/lang/constant/MethodHandleDesc.java
--- a/src/java.base/share/classes/java/lang/constant/MethodHandleDesc.java	Tue May 21 12:29:47 2019 -0700
+++ b/src/java.base/share/classes/java/lang/constant/MethodHandleDesc.java	Tue May 21 15:59:46 2019 -0400
@@ -70,6 +70,8 @@
      *                         for a field or constructor
      * @return the {@linkplain MethodHandleDesc}
      * @throws NullPointerException if any of the non-ignored arguments are null
+     * @throws IllegalArgumentException if the descriptor string is not a valid
+     * method or field descriptor
      * @jvms 4.4.8 The CONSTANT_MethodHandle_info Structure
      * @jvms 4.2.2 Unqualified Names
      * @jvms 4.3.2 Field Descriptors