Bug 1331347 - Incremental compilation with rules that use eval fails
Summary: Incremental compilation with rules that use eval fails
Keywords:
Status: CLOSED EOL
Alias: None
Product: JBoss BRMS Platform 6
Classification: Retired
Component: BRE
Version: 6.3.0
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
: ---
Assignee: Mario Fusco
QA Contact: Tibor Zimanyi
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2016-04-28 10:54 UTC by Tibor Zimanyi
Modified: 2020-03-27 19:07 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2020-03-27 19:07:56 UTC
Type: Bug


Attachments (Terms of Use)

Description Tibor Zimanyi 2016-04-28 10:54:09 UTC
Description of problem:

When using evals in rules, incremental compilation fails on various errors. See reproducer from PR [1]. There are at least 4 different failing stacktraces in the tests.

E.g. this: 

Caused by: java.lang.ArrayIndexOutOfBoundsException: 1
	at org.drools.core.phreak.AddRemoveRule.handleExistingPaths(AddRemoveRule.java:394)
	at org.drools.core.phreak.AddRemoveRule.addRule(AddRemoveRule.java:124)
	at org.drools.core.reteoo.builder.ReteooRuleBuilder.addSubRule(ReteooRuleBuilder.java:190)
	at org.drools.core.reteoo.builder.ReteooRuleBuilder.addRule(ReteooRuleBuilder.java:133)


Version-Release number of selected component (if applicable): 6.3.0.CR1


How reproducible: 

Run tests from PR: https://github.com/droolsjbpm/drools/pull/760


Note You need to log in before you can comment on or make changes to this bug.