[jboss-jira] [JBoss JIRA] Created: (JBRULES-1512) UnsupportedOperationException when calling addPackage on rulebase
Mattias Nilsson (JIRA)
jira-events at lists.jboss.org
Tue Mar 18 15:58:05 EDT 2008
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
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
More information about the jboss-jira
mailing list