[rules-users] short data type validation
jack wu
jackxwu at yahoo.com
Mon Apr 7 17:47:12 EDT 2008
there is a regression in the latest 4.0.6 code base. with 4.0.2 the following rule would fail with an exception because i have defined a java "short" type for the variable "vshort" and the value "9999999999" is too large for a short type. but now this rule will execute without exceptions. is it intended? thanks.
rule "checkshort"
dialect "java"
when
Message( vshort < 9999999999 )
then
System.out.println( "===check short ok===" );
end
---------------------------------
You rock. That's why Blockbuster's offering you one month of Blockbuster Total Access, No Cost.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20080407/d5eba58c/attachment.html
More information about the rules-users
mailing list