This was a regression due to substantial changes of the DRL compiler. MVEL strict mode has nothing to do with this. <br><br>I&#39;m not sure when the fix was deployed, but you should have this MVEL2 jar in your classpath - check the size. And you may need a Drools built from the latest of the 5.2.0.M2 branch.<br>
<br>... 711693 2011-05-02 14:12 ./org/mvel/mvel2/2.1-SNAPSHOT/mvel2-2.1-20110501.033205-24.jar<br>... 711693 2011-05-02 14:12 ./org/mvel/mvel2/2.1-SNAPSHOT/mvel2-2.1-SNAPSHOT.jar<br><br>Tested successfully with<br>   import function java.lang.Math.*;<br>
   rule x<br>   when<br>       $i: Imaginary( eval(atan2(im,re) &gt; PI/4.0) )<br>   then end<br><br>-W<br><br><br><div class="gmail_quote">On 3 May 2011 00:07, jkrupka <span dir="ltr">&lt;<a href="mailto:jkrupka@gmail.com">jkrupka@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;">I remember reading some stuff about changes in 5.2 regarding a new strict<br>
mode -<br>
<a href="http://docs.jboss.org/drools/release/5.2.0.M2/drools-introduction-docs/html_single/index.html#d0e354" target="_blank">http://docs.jboss.org/drools/release/5.2.0.M2/drools-introduction-docs/html_single/index.html#d0e354</a><br>

<br>
So it might be a compile warning/issue... which you could fix, or I think<br>
just turn off strict mode?<br>
<font color="#888888"><br>
--<br>
View this message in context: <a href="http://drools.46999.n3.nabble.com/5-2-0-M2-issue-using-import-functions-tp2865621p2891587.html" target="_blank">http://drools.46999.n3.nabble.com/5-2-0-M2-issue-using-import-functions-tp2865621p2891587.html</a><br>

</font><div><div></div><div class="h5">Sent from the Drools: User forum mailing list archive at Nabble.com.<br>
_______________________________________________<br>
rules-users mailing list<br>
<a href="mailto:rules-users@lists.jboss.org">rules-users@lists.jboss.org</a><br>
<a href="https://lists.jboss.org/mailman/listinfo/rules-users" target="_blank">https://lists.jboss.org/mailman/listinfo/rules-users</a><br>
</div></div></blockquote></div><br>