rule x<br>when<br>   # ... bind 2 int and 2 long, making sure that<br>   # $int1 == 1 and $int3 == 65536...<br><br>   eval( $int1 == $long2 == $int3 == $long4 )<br>then<br>   // print all 4 values<br>end<br><br>Using dialect &quot;java&quot; this results in a syntax error, which is to be expected.<br>
<br>Dialect &quot;mvel&quot; evaluates this to true for a surprising range of integer values.<br>Here is a selection:<br><br> 1 1 65536 1234567890<br> 1 1 65536 424242<br> 1 1 65536 65536<br> 1 1 65536 4294967296<br> 1 1 65536 65568<br>
 1 1 65536 65552<br><br>Is there any logic behind this?<br><br>-W<br><br><br><br>