<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<meta content="text/html; charset=ISO-8859-1"
http-equiv="Content-Type">
</head>
<body text="#000000" bgcolor="#ffffff">
On 22/11/2010 01:03, Zeke wrote:
<blockquote
cite="mid:AANLkTimumwwSwSaHy6SOBB1LbzQUoh+qz_F-5v9emOZH@mail.gmail.com"
type="cite">Why int need be cast to BigInteger? 2147483647 is a
valid int value. In normal java program, if a is a int variable,
and assign its value to 2147483647, a == 2147483647 is true.<br>
</blockquote>
Try this on 5.1, see if it works there first.<br>
<br>
Mark<br>
<blockquote
cite="mid:AANLkTimumwwSwSaHy6SOBB1LbzQUoh+qz_F-5v9emOZH@mail.gmail.com"
type="cite"><br>
Thanks!<br>
<br>
<br>
<div class="gmail_quote">
2010/11/19 Mark Proctor <span dir="ltr"><<a
moz-do-not-send="true" href="mailto:mproctor@codehaus.org">mproctor@codehaus.org</a>></span><br>
<blockquote class="gmail_quote" style="margin: 0pt 0pt 0pt
0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;">
<div text="#000000" bgcolor="#ffffff">
<div>
<div class="h5"> On 19/11/2010 01:34, Zeke wrote:
<blockquote type="cite">Can anyone help me?<br>
<br>
Thanks!<br>
<br>
<br>
<div class="gmail_quote">On 16 November 2010 09:57,
Zeke <span dir="ltr"><<a moz-do-not-send="true"
href="mailto:xanadu860122@gmail.com"
target="_blank">xanadu860122@gmail.com</a>></span>
wrote:<br>
<blockquote class="gmail_quote" style="margin: 0pt
0pt 0pt 0.8ex; border-left: 1px solid rgb(204,
204, 204); padding-left: 1ex;"> Hi,<br>
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.<br>
<br>
</blockquote>
</div>
</blockquote>
</div>
</div>
I suspect Drools 4.0.x did n't have big integer and big
decimal coercion.<br>
<br>
Mark<br>
<blockquote type="cite">
<div class="gmail_quote">
<blockquote class="gmail_quote" style="margin: 0pt 0pt
0pt 0.8ex; border-left: 1px solid rgb(204, 204, 204);
padding-left: 1ex;"><br>
Thanks!<br>
</blockquote>
</div>
<br>
<pre><fieldset></fieldset>
_______________________________________________
rules-users mailing list
<a moz-do-not-send="true" href="mailto:rules-users@lists.jboss.org" target="_blank">rules-users@lists.jboss.org</a>
<a moz-do-not-send="true" href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</div>
<br>
_______________________________________________<br>
rules-users mailing list<br>
<a moz-do-not-send="true"
href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a moz-do-not-send="true"
href="https://lists.jboss.org/mailman/listinfo/rules-users"
target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
<br>
</blockquote>
</div>
<br>
<pre wrap="">
<fieldset class="mimeAttachmentHeader"></fieldset>
_______________________________________________
rules-users mailing list
<a class="moz-txt-link-abbreviated" href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a>
<a class="moz-txt-link-freetext" href="https://lists.jboss.org/mailman/listinfo/rules-users">https://lists.jboss.org/mailman/listinfo/rules-users</a>
</pre>
</blockquote>
<br>
</body>
</html>