8223725: j.l.c.MethodHandleDesc::of throws undocumented exception IllegalArgumentException
Reviewed-by: rriggs
--- 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