-
Bug
-
Resolution: Fixed
-
P3
-
12, 13
-
None
-
b22
MethodTypeDesc insertParameterTypes(int pos, ClassDesc... paramTypes) allows to have paramTypes[i] == CD_void also the resulting method type can be more than 255 parameter slots
Expected behavior should be as in the set of MethodType's methods:
appendParameterTypes(Class<?>... ptypesToInsert)
appendParameterTypes(List<Class<?>> ptypesToInsert)
insertParameterTypes(int num, Class<?>... ptypesToInsert)
insertParameterTypes(int num, List<Class<?>> ptypesToInsert)
Throws:
IllegalArgumentException - if any element of ptypesToInsert is void.class or if the resulting method type would have more than 255 parameter slots
Expected behavior should be as in the set of MethodType's methods:
appendParameterTypes(Class<?>... ptypesToInsert)
appendParameterTypes(List<Class<?>> ptypesToInsert)
insertParameterTypes(int num, Class<?>... ptypesToInsert)
insertParameterTypes(int num, List<Class<?>> ptypesToInsert)
Throws:
IllegalArgumentException - if any element of ptypesToInsert is void.class or if the resulting method type would have more than 255 parameter slots
- csr for
-
JDK-8223997 j.l.c.MethodTypeDesc::insertParameterTypes doesn't control type of parameters
- Closed