[
http://jira.jboss.com/jira/browse/JBRULES-1482?page=comments#action_12402318 ]
Mark Proctor commented on JBRULES-1482:
---------------------------------------
sorry I forgot the commit msg for 4.0.x, but it is there:
commit -m ""
C:/dev/jbossrules/4.0.x/drools-compiler/src/test/java/org/drools/integrationtests/MiscTest.java
C:/dev/jbossrules/4.0.x/drools-compiler/src/test/resources/org/drools/integrationtests/test_MergePackageWithSameRuleNames1.drl
C:/dev/jbossrules/4.0.x/drools-compiler/src/test/resources/org/drools/integrationtests/test_MergePackageWithSameRuleNames2.drl
Sending
dev/jbossrules/4.0.x/drools-compiler/src/test/java/org/drools/integrationtests/MiscTest.java
Adding
dev/jbossrules/4.0.x/drools-compiler/src/test/resources/org/drools/integrationtests/test_MergePackageWithSameRuleNames1.drl
Adding
dev/jbossrules/4.0.x/drools-compiler/src/test/resources/org/drools/integrationtests/test_MergePackageWithSameRuleNames2.drl
Transmitting file data ...
Committed revision 18864.
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