commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Niall Pemberton (JIRA)" <>
Subject [jira] Updated: (VALIDATOR-173) [validator] Change ValidatorUtils.getValueAsString to throw exception
Date Wed, 19 Jul 2006 13:22:27 GMT
     [ ]

Niall Pemberton updated VALIDATOR-173:

    Component/s: Framework

> [validator] Change ValidatorUtils.getValueAsString to throw exception
> ---------------------------------------------------------------------
>                 Key: VALIDATOR-173
>                 URL:
>             Project: Commons Validator
>          Issue Type: Improvement
>          Components: Framework
>         Environment: Operating System: All
> Platform: PC
>            Reporter: peter merikan
>            Priority: Minor
> If you misspell the name of a dependent property it is ignored by the validator.
> The validator uses the ValidatorUtil.getValueAsString method to get the value
> from the dependent property. The returned value is null because the property
> doesn't exist and the ValidatorUtil.getValueAsString method catches all
> exceptions (e.g. NoSuchMethodException)
> Shouldn't the validator throw a exception if a property doesn't exist? What if I
> change the name of a property and then correct the jsp but forgot to update
> validate.xml.

This message is automatically generated by JIRA.
If you think it was sent incorrectly contact one of the administrators:
For more information on JIRA, see:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message