Hide Forgot
Description of problem: If you have 2 rules with type mismatch condition (Person.status is String), ===== rule "rule1" when Person(status == 1) then System.out.println( "rule1" ); end rule "rule2" when Person(status == 2) then System.out.println( "rule2" ); end ===== Person with status "1" hits "rule1" thanks to Mvel coercion. ===== Person p = new Person(); p.setStatus("1"); kSession.insert(p); kSession.fireAllRules(); ===== However, if you have 3 rules, ===== rule "rule1" when Person(status == 1) then System.out.println( "rule1" ); end rule "rule2" when Person(status == 2) then System.out.println( "rule2" ); end rule "rule3" when Person(status == 3) then System.out.println( "rule3" ); end ===== Person with status "1" doesn't hit "rule1". Steps to Reproduce: 1. I'm going to send a test case PR. Actual results: "rule1" is not fired. Expected results: "rule1" is fired or give an error or warning.
Sent a test case PR: https://github.com/droolsjbpm/drools/pull/745
Fixed by https://github.com/droolsjbpm/drools/compare/5801072...434c6e2
Cherry-picked to branch 6.4.x with https://github.com/droolsjbpm/drools/compare/d2391b0...58ddfd1