[jboss-jira] [JBoss JIRA] Created: (JBRULES-1482) Bug with ReeteoRuleBase and merged package

Delbart Vincent (JIRA) jira-events at lists.jboss.org
Fri Feb 22 08:10:42 EST 2008


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


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