[hibernate-issues] [Hibernate-JIRA] Closed: (HHH-2014) org.hibernate.type.SortedSetType does not overwrite instantiate(int anticipatedSize)

Steve Ebersole (JIRA) noreply at atlassian.com
Fri Aug 18 11:53:18 EDT 2006


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2014?page=all ]
     
Steve Ebersole closed HHH-2014:
-------------------------------

    Resolution: Duplicate

> org.hibernate.type.SortedSetType does not overwrite instantiate(int anticipatedSize)
> ------------------------------------------------------------------------------------
>
>          Key: HHH-2014
>          URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2014
>      Project: Hibernate3
>         Type: Bug

>   Components: core
>     Versions: 3.2.0.cr3
>  Environment: Hibernate 3.2.0.cr3, affects all environments
>     Reporter: Stefan Schulze
>     Priority: Critical

>
> Original Estimate: 1 hour
>         Remaining: 1 hour
>
> org.hibernate.type.SortedSetType inherits the implementation of instantiate(int anticipatedSize) from org.hibernate.type.SetType. In the effect, a java.util.HashSet gets instatiated instead of a java.util.TreeSet.  Collections mapped with sort="natural" or sort="<T implements java.util.Comparator>" will never be sorted once they are retrieved from the database. Since is is neither possible nor makes it sense to create a TreeSet with an initial size, the missing implementation of instantiate(int anticipatedSize) may safely ignore the argument and delegate to instantiate().

-- 
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