mx4j/src/core/javax/management BetweenQueryExp.java,1.6,1.7
Jeremy Boynes <[email protected]> Mon, 14 Feb 2005 06:58:38 +0000
| Newsgroups | gmane.comp.java.mx4j.cvs |
|---|---|
| Message-ID | <[email protected]> |
Update of /cvsroot/mx4j/mx4j/src/core/javax/management
In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv27239/src/core/javax/management
Modified Files:
BetweenQueryExp.java
Log Message:
Fix for [ 1122183 ] Between operation only operates on numerics
I commented out String comparisons so we can add them back in if that is compliant
Index: BetweenQueryExp.java
===================================================================
RCS file: /cvsroot/mx4j/mx4j/src/core/javax/management/BetweenQueryExp.java,v
retrieving revision 1.6
retrieving revision 1.7
diff -C2 -d -r1.6 -r1.7
*** BetweenQueryExp.java 13 Nov 2004 16:38:21 -0000 1.6
--- BetweenQueryExp.java 14 Feb 2005 06:58:28 -0000 1.7
***************
*** 68,71 ****
--- 68,72 ----
}
}
+ /*
else if (val1 instanceof StringValueExp && val2 instanceof StringValueExp && val3 instanceof StringValueExp)
{
***************
*** 75,78 ****
--- 76,84 ----
return isBetween(s1, s2, s3);
}
+ */
+ else
+ {
+ throw new InvalidApplicationException("Values are not numeric");
+ }
}
-------------------------------------------------------
SF email is sponsored by - The IT Product Guide
Read honest & candid reviews on hundreds of IT Products from real users.
Discover which products truly live up to the hype. Start reading now.
http://ads.osdn.com/?ad_id=6595&alloc_id=14396&op=click