[rules-users] "==" not work for big int value

Zeke xanadu860122 at gmail.com
Mon Nov 15 20:57:36 EST 2010


Hi,
  I'm using Drools 4.0.7. I find "==" operator does not work for big int
value (like 2147483647). The condition is like "sec.fir.i == 2147483647". I
attach my test code. With my simple testing, it seems that it does not work
for comparsion with int constant from 1000000001 to 2147483647. Is it a bug
of drools? I have already tested long and BigInteger do not have this kind
of problem.


Thanks!
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20101116/37691646/attachment.html 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: HelloWorldExample.java
Type: application/octet-stream
Size: 9023 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20101116/37691646/attachment.obj 
-------------- next part --------------
A non-text attachment was scrubbed...
Name: test.drl
Type: application/octet-stream
Size: 473 bytes
Desc: not available
Url : http://lists.jboss.org/pipermail/rules-users/attachments/20101116/37691646/attachment-0001.obj 


More information about the rules-users mailing list