[rules-users] Strange situation when defining arrays in Drools 5

Luis Silva lesilvav at gmail.com
Mon Jun 8 12:02:42 EDT 2009


Last friday, I had the next situation. In drools 4.0.7 I had the expression:
new double[]{-1, 1}
And it worked.

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 :

"line 29:114 extraneous input '1' expecting RIGHT_CURLY"

and an exception, during rule execution :

"org.drools.runtime.rule.ConsequenceException:
java.lang.IndexOutOfBoundsException"

So the working expression for Drool 5.0 was: new double[]{-1,1}


-- 
Luis Enrique Silva Valdivieso
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.jboss.org/pipermail/rules-users/attachments/20090608/2731d5b7/attachment-0001.html 


More information about the rules-users mailing list