8219480: j.l.c.ClassDesc::arrayType(int rank) throws IllegalArgumentException if rank = 0

Reviewed-by: mchung, briangoetz
This commit is contained in:
Vicente Romero 2019-02-23 19:41:53 -05:00
parent 3d6795e0e3
commit 4d368850e1
2 changed files with 7 additions and 1 deletions

View file

@ -170,7 +170,7 @@ public interface ClassDesc
*
* @param rank the rank of the array
* @return a {@linkplain ClassDesc} describing the array type
* @throws IllegalArgumentException if the rank is less than zero or if the rank of the resulting array type is
* @throws IllegalArgumentException if the rank is less than or equal to zero or if the rank of the resulting array type is
* greater than 255
* @jvms 4.4.1 The CONSTANT_Class_info Structure
*/