[hibernate-issues] [Hibernate-JIRA] Commented: (HHH-2717) toString() method with cyclic associations and a dynamic model causes StackOverflowException

Max Rydahl Andersen (JIRA) noreply at atlassian.com
Tue Jul 10 12:23:52 EDT 2007


    [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2717?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_27432 ] 

Max Rydahl Andersen commented on HHH-2717:
------------------------------------------

yes - please report this issue to sun ;)

You can't technically have any circular model defined in hashmaps even in java.

> toString() method with cyclic associations and a dynamic model causes StackOverflowException
> --------------------------------------------------------------------------------------------
>
>                 Key: HHH-2717
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2717
>             Project: Hibernate3
>          Issue Type: Bug
>    Affects Versions: 3.2.4.sp1
>         Environment: Hibernate 3.2.4.sp1; MySQL
>            Reporter: Stefan Wachter
>
> When the toString() method is called on an entity (i.e. on a HashMap) then a StackOverflow occurs.
> The members of an association are stored in map entry with a PersistentList value.
> The PersistentList in turn contains HashMaps, that contain PersistentLists again, ...
> The toString() method must take care of cycles.

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