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 "1" and after ","), because I was getting a warning message, during knowledge base building :<br>
<br>"line 29:114 extraneous input '1' expecting RIGHT_CURLY"<br><br>and an exception, during rule execution :<br><br>"org.drools.runtime.rule.ConsequenceException: java.lang.IndexOutOfBoundsException"<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>