Here it is:<br><br> private void makeFacts(){<br>    kSession.insert( Integer.valueOf( 1 ) );<br>    kSession.insert( Long.valueOf( 1 ) );<br>    kSession.insert( Integer.valueOf( 0x10010 ) );<br>    kSession.insert( Integer.valueOf( 0x10020 ) );<br>
    kSession.insert( Long.valueOf( 0x10010  ) );<br>    kSession.insert( Long.valueOf( 0x10020  ) );<br>    kSession.insert( Integer.valueOf( 0x10000 ) );<br>    kSession.insert( Long.valueOf( 0x100000000L ) );<br>    kSession.insert( Long.valueOf( 0x10000L ) );<br>
 }<br><br>package shift<br><br>############### dialect &quot;mvel&quot;<br><br>rule test1<br>when<br>   $a: Integer( $one:   intValue == 1 )<br>   $b: Integer( $shift: intValue )<br>   $c: Integer( $i: intValue, intValue == ($one &lt;&lt; $shift ) )<br>
then<br>    System.out.println( &quot;test1 &quot; + $a + &quot; &lt;&lt; &quot; + $b + &quot; = &quot; + Integer.toHexString( $c ) );<br>end<br><br>rule test2<br>when<br>   $a: Integer( $one:   intValue == 1 )<br>   $b:  Long   ( $shift: longValue )<br>
   $c: Integer( $i: intValue, intValue == ($one &lt;&lt; $shift ) )<br>then<br>    System.out.println( &quot;test2 &quot; + $a + &quot; &lt;&lt; &quot; + $b + &quot; = &quot; + Integer.toHexString( $c ) );<br>end<br><br>rule test3<br>
when<br>   $a: Long   ( $one:   longValue == 1 )<br>   $b: Long   ( $shift: longValue )<br>   $c: Integer( $i: intValue, intValue == ($one &lt;&lt; $shift ) )<br>then<br>    System.out.println( &quot;test3 &quot; + $a + &quot; &lt;&lt; &quot; + $b + &quot; = &quot; + Integer.toHexString( $c ) );<br>
end<br><br>rule test4<br>when<br>   $a: Long   ( $one:   longValue == 1 )<br>   $b: Integer( $shift: intValue )<br>   $c: Integer( $i: intValue, intValue == ($one &lt;&lt; $shift ) )<br>then<br>    System.out.println( &quot;test4 &quot; + $a + &quot; &lt;&lt; &quot; + $b + &quot; = &quot; + Integer.toHexString( $c ) );<br>
end<br><br>##############################<br><br>-W<br><br><br><br><div class="gmail_quote">On 22 June 2011 17:26, Michael Anstis <span dir="ltr">&lt;<a href="mailto:michael.anstis@gmail.com">michael.anstis@gmail.com</a>&gt;</span> wrote:<br>
<blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">The current conversation on IRC might benefit form your simplified test case?!?<br><br><div class="gmail_quote">
<div><div></div><div class="h5">On 22 June 2011 16:24, Wolfgang Laun <span dir="ltr">&lt;<a href="mailto:wolfgang.laun@gmail.com" target="_blank">wolfgang.laun@gmail.com</a>&gt;</span> wrote:<br>
</div></div><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;"><div><div></div><div class="h5">Given a scant selection of facts taken from java.lang.Integer and java.lang.Long (no value exceeds  and  a rule base with just 4 rules using simple constraints using nothing but the fact values, a single operator besides &quot;==&quot;, it compiles and executes according to my expectations.<br>


<br>Getting high-spirited, I added<br><br>   dialect &quot;mvel&quot;;<br><br>to my DRL file and re-run everything. Lo and behold! Some rules don&#39;t fire any more!<br><br>Is this to be expected? (There is no difference between 5.1.1 and 5.2.x.)<br>


<br>Cheers<br><font color="#888888">Wolfgang<br><br> 
</font><br></div></div>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org" target="_blank">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>
<br>_______________________________________________<br>
rules-dev mailing list<br>
<a href="mailto:rules-dev@lists.jboss.org">rules-dev@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-dev" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-dev</a><br>
<br></blockquote></div><br>