filter condition ignored by isEmpty() and size() on lazy PersistentBag
-----------------------------------------------------------------------
Key: HHH-6375
URL:
http://opensource.atlassian.com/projects/hibernate/browse/HHH-6375
Project: Hibernate Core
Issue Type: Bug
Components: core
Affects Versions: 3.5.1
Environment: Hibernate 3.5.1 with Derby dialect
Reporter: Ken Jarrad
Priority: Minor
Filter conditions are ignored by methods isEmpty() and size() on a lazy PersistentBag.
More specifically, internal method readSize() ignores enabled filter conditions.
The size returned is too large and subsequent attempts to access the collection throw
ArrayIndexOutOfBoundsException.
Methods such as Collections#binarySearch fail when applied to the lazy PersistentBag.
--
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
http://opensource.atlassian.com/projects/hibernate/secure/Administrators....
-
For more information on JIRA, see:
http://www.atlassian.com/software/jira