Red Hat Bugzilla – Bug 971008
Inline cast does not work with matches operator
Last modified: 2014-08-06 16:20:04 EDT
Description of problem:
Using matches operator with field extracted using inline cast can't be compiled.
Version-Release number of selected component (if applicable):
Drools 6.0.0.Beta3, Drools master (2013-06-05)
Pull request with reproducer submitted on Github.
Steps to Reproduce:
1. run testMatchesOperator JUnit test
Package is not built, complaining about right side not being of type boolean
Package compiles fine and rules are evaluated correctly
Additional operators may be affected as well.
Submitted as pull request #208
*** This bug has been marked as a duplicate of bug 971001 ***
Why was this bug marked as duplicate?
It is not the duplicate of bug 971001 as it has completely different symptoms at different time (this is rules compile time problem).
Marking this reopened as it is not fixed in BRMS 6.0.0.ER2.
Tomas, I wanted to reproduce this issue but I couldn't find that testMatchesOperator you mentioned in your first comment. Where is it?
check the pull request #208 in drools repository. It was closed, but it seems the tests were never used. Have a look there and merge the tests, please.
It was a mvel bug that I fixed here https://github.com/mvel/mvel/commit/8e54d02ed8f7f75ee51f5057dedb99c063040691
The fix will be available with the next mvel release (that I will drop asap).
Verified in BRMS-6.0.0 ER5.