[
http://jira.jboss.com/jira/browse/JBRULES-1512?page=all ]
Mark Proctor closed JBRULES-1512.
---------------------------------
Fix Version/s: 4.0.7
5.0.0-M1
Resolution: Done
Wasn't broken on trunk, but added test anyway.
UnsupportedOperationException when calling addPackage on rulebase
-----------------------------------------------------------------
Key: JBRULES-1512
URL:
http://jira.jboss.com/jira/browse/JBRULES-1512
Project: JBoss Drools
Issue Type: Bug
Security Level: Public(Everyone can see)
Affects Versions: 4.0.4
Reporter: Mattias Nilsson
Assigned To: Mark Proctor
Priority: Minor
Fix For: 4.0.7, 5.0.0-M1
Attachments: global-test.zip
While migrating from Drools 3.0.6 to 4.0.4 a customer of ours found a bug. If you load
two DRL files with same package declaration using two package builders into one rulebase,
and only the second DRL file contains globals, the rulebase will throw an exception when
loading the second package. This used to work in 3.0.6 but fails in 4.0.4. The following
exception is thrown:
java.lang.UnsupportedOperationException
at java.util.AbstractMap.put(AbstractMap.java:228)
at java.util.AbstractMap.putAll(AbstractMap.java:317)
at org.drools.common.AbstractRuleBase.mergePackage(AbstractRuleBase.java:495)
at org.drools.common.AbstractRuleBase.addPackage(AbstractRuleBase.java:399)
I will upload an example that reproduces this problem.
--
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