Last friday, I had the next situation. In drools 4.0.7 I had the expression: new double[]{-1, 1} <br>And it worked.<br><br>But in Drools 5.0 I had to erase the blank space (before &quot;1&quot; and after &quot;,&quot;), because I was getting a warning message, during knowledge base building :<br>
<br>&quot;line 29:114 extraneous input &#39;1&#39; expecting RIGHT_CURLY&quot;<br><br>and an exception, during rule execution :<br><br>&quot;org.drools.runtime.rule.ConsequenceException: java.lang.IndexOutOfBoundsException&quot;<br>
<br>So the working expression for Drool 5.0 was: new double[]{-1,1}<br><br clear="all"><br>-- <br>Luis Enrique Silva Valdivieso<br><br>