Red Hat Bugzilla – Bug 1009348
IndexOutOfBoundsException is thrown, when operator and is inside conditional element not
Last modified: 2014-08-06 16:16:32 EDT
Description of problem:
When conditional element 'not' is used with length sliding window and two parts separated by operator 'and' are inside 'not', test fails with IndexOutOfBoundsException.
Version-Release number of selected component (if applicable):
Pull request #257 submited in Drools.
Steps to Reproduce:
1. Make a drl file with one rule, which contains conditional element 'not' after 'when'. Two parts separated by operator 'and' should be inside 'not' and first part should contains length sliding window.
2. Write a simple test with one kieSession.
3. Run test.
IndexOutOfBoundsException is thrown.
Test should pass.
This is now fixed and cherry-picked to 6.0.x
Verified on BRMS 6.0.0.ER5.