commons-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From bugzi...@apache.org
Subject DO NOT REPLY [Bug 12022] New: - Validator Range Checking Bug
Date Sun, 25 Aug 2002 05:26:09 GMT
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG 
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://nagoya.apache.org/bugzilla/show_bug.cgi?id=12022>.
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:   <mailto:commons-dev-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:commons-dev-help@jakarta.apache.org>


Mime
View raw message