[jboss-jira] [JBoss JIRA] (DROOLS-1532) Regression in incremental compilation
Mario Fusco (JIRA)
issues at jboss.org
Tue Apr 18 07:01:00 EDT 2017
Mario Fusco created DROOLS-1532:
-----------------------------------
Summary: Regression in incremental compilation
Key: DROOLS-1532
URL: https://issues.jboss.org/browse/DROOLS-1532
Project: Drools
Issue Type: Bug
Components: core engine
Reporter: Mario Fusco
Assignee: Mario Fusco
The introduction of the parallel engine has caused a regression in the incremental compilation as evidenced by the org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testOr2 turtle test
{code}
java.lang.AssertionError: Expected results are different than actual after operations:
1. CREATE_SESSION: [ package com.rules;
global java.util.List list
rule R1
when
Integer()
then
list.add('R1');
end, package com.rules;
global java.util.List list
rule R2
when
$k: Integer()
( Integer(this != 1) or Integer(this == 1) )
then
list.add('R2');
end]
2. INSERT_FACTS: [1]
3. FIRE_RULES
4. CHECK_RESULTS: [R1, R2]
5. REMOVE_RULES: [R2]
6. FIRE_RULES
7. CHECK_RESULTS: []
8. REMOVE_RULES: [R1]
9. FIRE_RULES
10. CHECK_RESULTS: []
11. ADD_RULES: [ package com.rules;
global java.util.List list
rule R2
when
$k: Integer()
( Integer(this != 1) or Integer(this == 1) )
then
list.add('R2');
end]
12. FIRE_RULES
Expected results:
[R2 ]
Actual results:
[]
at org.junit.Assert.fail(Assert.java:88)
at org.drools.compiler.integrationtests.incrementalcompilation.TestContext.checkResults(TestContext.java:210)
at org.drools.compiler.integrationtests.incrementalcompilation.TestContext.executeTestOperation(TestContext.java:108)
at org.drools.compiler.integrationtests.incrementalcompilation.TestContext.executeTestOperations(TestContext.java:72)
at org.drools.compiler.integrationtests.incrementalcompilation.AbstractAddRemoveRulesTest.runAddRemoveTest(AbstractAddRemoveRulesTest.java:110)
at org.drools.compiler.integrationtests.incrementalcompilation.AddRemoveRulesTest.testOr2(AddRemoveRulesTest.java:2332)
{code}
--
This message was sent by Atlassian JIRA
(v7.2.3#72005)
More information about the jboss-jira
mailing list