|
Description:
|
As per the API documentation an {{IllegalArgumentException}} is to be thrown in case {{null}} is passed to
the methods of
{{ExecutableValidator
#
}}. That's not consistently implemented in the RI currently:
* {{
validateParameters()}}
and {{validateConstructorParameters()}} accept {{null }}
for the _parameterValues_ parameter
, but the RI accepts that
and
returns
return
an empty set of violations
.
Also an
* All methods throw a
{{
IllegalArgumentException
NullPointerException
}}
(
instead of
a
an
{{
NullPointerException
IllegalArgumentException
}}
as of today) needs to be thrown
when passing {{null}} as single validation group ({{(Class<?>)null}}).
Also an
*
{{
IllegalArgumentException
validateConstructorReturnValue()
}}
needs to be thrown when passing
accepts
{{null}}
to
for the _createdObject_ parameter. *
{{
ExecutableValidator#validateConstructorReturnValue
validateReturnValue
()}}
accepts {{null}}
for the
_createdObject_
_object_
parameter.
See {{ValidateParametersTest}} etc.
|