Description of problem: Calendars don't work, when new KieContainer is created and newKieSession is called right after creation of other KieContainer and calling getKieBase. Version-Release number of selected component (if applicable): Drools 6.0.0-SNAPSHOT 6.0.0.ER2 How reproducible: Pull request #251 submited in Drools. Steps to Reproduce: 1. Make drl file with two rules. First rule should fire only on weekdays. Second rule should fire only on weekend days. 2. Write a test with this order of commands: - create first KieContainer and call getKieBase() - create second KieContainer - from second KieContainer create new session ( newKieSession() ) - add calendars to session and call fireAllRules() 3. Run test. Actual results: Two rules are fired. Expected results: Only one rule should fired. Additional info:
I couldn't reproduce this issue on the master. Very likely it was related by this issue: https://issues.jboss.org/browse/DROOLS-260 that has been fixed with this commit: https://github.com/droolsjbpm/drools/commit/39276fea9209353bf3704663da0b03ef934cc908
Verified on BRMS 6.0.0.ER5.