[jboss-jira] [JBoss JIRA] Updated: (JBRULES-1482) Bug with ReeteoRuleBase and merged package
Mark Proctor (JIRA)
jira-events at lists.jboss.org
Tue Mar 11 22:52:09 EDT 2008
[ http://jira.jboss.com/jira/browse/JBRULES-1482?page=all ]
Mark Proctor updated JBRULES-1482:
----------------------------------
Fix Version/s: 4.0.5
5.0.0-M1
> Bug with ReeteoRuleBase and merged package
> ------------------------------------------
>
> Key: JBRULES-1482
> URL: http://jira.jboss.com/jira/browse/JBRULES-1482
> Project: JBoss Drools
> Issue Type: Bug
> Security Level: Public(Everyone can see)
> Components: Reteoo
> Affects Versions: 4.0.4
> Environment: doesn't matter
> Reporter: Delbart Vincent
> Assigned To: Mark Proctor
> Priority: Critical
> Fix For: 5.0.0-M1, 4.0.5
>
>
> The two same rule (with identical name) appears two times in the ReteeoRuleBase (reteooBuilder)
> example :
> package1 (name = "globalPackage)
> - rule1 (name="rule1")
> when
> then
> System.out.println("rule1 for the package1")
> package2 (name = "globalPackage)
> - rule2 (name="rule1")
> when
> then
> System.out.println("rule2 for the package2")
> when I add this two packages in the same RuleBase and execute :
> RuleBase ruleBase = RuleBaseFactory.newRuleBase();
> ruleBase.add(package1);
> ruleBase.add(package2);
> the log out is :
> rule1 for the package1
> rule2 for the package2
> The error is not in the mergePackage method in the AbstractRuleBase but in the addPackage(final Package newPkg) line 425.
> thanks,
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators: http://jira.jboss.com/jira/secure/Administrators.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list