[jboss-jira] [JBoss JIRA] (WFLY-9602) Smarter range validation error messages
Brian Stansberry (JIRA)
issues at jboss.org
Thu Dec 7 14:26:00 EST 2017
Brian Stansberry created WFLY-9602:
--------------------------------------
Summary: Smarter range validation error messages
Key: WFLY-9602
URL: https://issues.jboss.org/browse/WFLY-9602
Project: WildFly
Issue Type: Enhancement
Components: Domain Management
Reporter: Brian Stansberry
Priority: Minor
A message like this is kind of silly: "Value must be between 0 and 9007199254740991".
Smarter would be the ParameterValidator code that detects the message checking if the range max is Integer.MAX_INT (for an int) or Long.MAX_LONG (for a long) and if the bad value is below the max, just saying the equivalent of "Value must be greater than %d".
--
This message was sent by Atlassian JIRA
(v7.5.0#75005)
More information about the jboss-jira
mailing list