Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 33746 invoked from network); 25 Aug 2002 05:25:34 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 25 Aug 2002 05:25:34 -0000 Received: (qmail 15343 invoked by uid 97); 25 Aug 2002 05:26:11 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 15301 invoked by uid 97); 25 Aug 2002 05:26:10 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 15282 invoked by uid 50); 25 Aug 2002 05:26:09 -0000 Date: 25 Aug 2002 05:26:09 -0000 Message-ID: <20020825052609.15281.qmail@nagoya.betaversion.org> From: bugzilla@apache.org To: commons-dev@jakarta.apache.org Cc: Subject: DO NOT REPLY [Bug 12022] New: - Validator Range Checking Bug X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT . ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE. http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12022 Validator Range Checking Bug Summary: Validator Range Checking Bug Product: Commons Version: unspecified Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Validator AssignedTo: commons-dev@jakarta.apache.org ReportedBy: strutsbugs@freetocreate.org CC: jfarley@studentadvantage.com See struts bug 10191 for more details. The original bug submitter suggested using doubles, in the GenericValidator. - public static boolean isInRange(int value, int min, int max) { + public static boolean isInRange(double value, double min, double max) { So doubles so could be compared however on the Struts side it may be more useful to do RTTI first on the Range objects and check for Byte, Short, Integer, Long, Float, Double in that in that order based on the Max, Min set, I am assuming they are stored as Objects also ? I have never used the Validator framework myself so I there could be more changes needed than those above. What do you think ? rleland@apache.org So what I am requesting is a + public static boolean isInRange(double value, double min, double max) + public static boolean isInRange(short value, short min, short max) -- To unsubscribe, e-mail: For additional commands, e-mail: