]
Mark Proctor resolved JBRULES-2852.
-----------------------------------
Fix Version/s: 5.2.0.M2
Resolution: Done
I think this has been fixed. the code now reads:
public boolean isEmpty() {
return this.assertMap.size() == 0;
}
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
Fix For: 5.2.0.M2
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: