[hibernate-issues] [Hibernate-JIRA] Created: (HHH-3643) PersistentList shouldn't add a null element where a regular element exists
Christophe Boutter (JIRA)
noreply at atlassian.com
Thu Dec 11 03:23:39 EST 2008
PersistentList shouldn't add a null element where a regular element exists
--------------------------------------------------------------------------
Key: HHH-3643
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-3643
Project: Hibernate Core
Issue Type: Improvement
Components: core
Environment: SVN Revision 15680, all plattforms.
Reporter: Christophe Boutter
Priority: Minor
Attachments: patch.txt
The readFrom() method of PersistentList does a null padding for the indexes where there are no elements in the database. The actual problem is that the method adds a null element at the index of the next element and then replacing it with the element instead of just adding the next element.
Thus in a List without any padding you get 2n operations for a List of size n instead of just n operations.
I added a patch with a solution to the problem.
--
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.jspa
-
For more information on JIRA, see: http://www.atlassian.com/software/jira
More information about the hibernate-issues
mailing list