[jboss-jira] [JBoss JIRA] Created: (JBRULES-2852) SingleThreadedObjectStore.isEmpty() implementation returns true when objects are in store
Radai Rosenblatt (JIRA)
jira-events at lists.jboss.org
Tue Dec 28 10:07:18 EST 2010
SingleThreadedObjectStore.isEmpty() implementation returns true when objects are in store
-----------------------------------------------------------------------------------------
Key: JBRULES-2852
URL: https://issues.jboss.org/browse/JBRULES-2852
Project: Drools
Issue Type: Bug
Security Level: Public (Everyone can see)
Components: drools-core
Affects Versions: 5.1.1.FINAL
Reporter: Radai Rosenblatt
Assignee: Mark Proctor
SingleThreadedObjectStore, line 88:
public boolean isEmpty() {
return this.assertMap != null;
}
i dont understand the logic here, but with a store with a single object (both assertmap and identitymap are non-null) this returns true, while there are values that can be iterated. this means that for an entry point using this store, isEmpty() returns true while toArray() returns a non-empty array ...
--
This message is automatically generated by JIRA.
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the jboss-jira
mailing list