Message:
The following issue has been closed.
---------------------------------------------------------------------
View the issue:
http://opensource.atlassian.com/projects/hibernate/secure/ViewIssue.jspa?key=HB-181
Here is an overview of the issue:
---------------------------------------------------------------------
Key: HB-181
Summary: ClassCast with SortedSet
Type: Bug
Status: Closed
Priority: Major
Resolution: DUPLICATE
Project: Hibernate2
Components:
core
Versions:
2.0.1
Assignee: Gavin King
Reporter: Gavin King
Created: Fri, 11 Jul 2003 12:16 AM
Updated: Fri, 11 Jul 2003 11:33 PM
Environment: Reported by Jason Horne
Description:
https://sourceforge.net/forum/message.php?msg_id=1875250
I'm not sure if this is related, but we are getting a ClassCastException because TreeMap is trying to cast our objects into Comparables since it can't find a Comparator. We defined a comparator, though, and it looks like it's copied most of the time.
However, it looks like this constructor for SortedSet:
public SortedSet(SessionImplementor session, java.util.SortedSet set) {
super(session, set);
}
...should copy the comparator as well. When this constructor is called by SortedSetType.wrap(...), the comparator isn't copied to the hibernate SortedSet class from the java.util.SortedSet class.
---------------------------------------------------------------------
JIRA INFORMATION:
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
If you want more information on JIRA, or have a bug to report see:
http://www.atlassian.com/software/jira
|