-
Enhancement
-
Resolution: Fixed
-
P4
-
8
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-8226055 | 14 | Joe Darcy | P4 | Resolved | Fixed | team |
A DESCRIPTION OF THE REQUEST :
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments() throws MalformedParameterizedTypeException.
Currently the exception message is empty.
JUSTIFICATION :
MalformedParameterizedTypeException with an empty description is vague, and could be caused by many different factors.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Methods throwing MalformedParameterizedTypeException, such as ParameterizedTypeImpl.validateConstructorArguments() should always a detailed message that explains what went wrong.
The detail message should include:
- The class being invoked.
- The formal class type parameters.
- The actual type parameters passed in.
sun.reflect.generics.reflectiveObjects.ParameterizedTypeImpl.validateConstructorArguments() throws MalformedParameterizedTypeException.
Currently the exception message is empty.
JUSTIFICATION :
MalformedParameterizedTypeException with an empty description is vague, and could be caused by many different factors.
EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
Methods throwing MalformedParameterizedTypeException, such as ParameterizedTypeImpl.validateConstructorArguments() should always a detailed message that explains what went wrong.
The detail message should include:
- The class being invoked.
- The formal class type parameters.
- The actual type parameters passed in.
- backported by
-
JDK-8226055 Clarify exception thrown by ParameterizedTypeImpl.validateConstructorArguments()
- Resolved
- relates to
-
JDK-8183175 Add explicit constructors to MalformedParameterizedTypeException
- Closed