[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-1593) Infinite loop/StackOverflow when calling configuration.setListener(null)

Gail Badner (JIRA) noreply at atlassian.com
Mon Oct 8 18:32:39 EDT 2007


     [ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1593?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Gail Badner resolved HHH-1593.
------------------------------

       Resolution: Fixed
    Fix Version/s: 3.3
                   3.2.6

Fixed trunk / 3.2

> Infinite loop/StackOverflow when calling configuration.setListener(null)
> ------------------------------------------------------------------------
>
>                 Key: HHH-1593
>                 URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1593
>             Project: Hibernate3
>          Issue Type: Bug
>          Components: core
>    Affects Versions: 3.1, 3.1.3
>            Reporter: Shawn Kerstetter
>            Assignee: Gail Badner
>             Fix For: 3.2.6, 3.3
>
>         Attachments: Configuration.patch
>
>
> calling config.setListener(null) will result in an infinite loop.
> It's a one character problem/fix:
> 	public void setListener(String type, Object listener) {
> 		if ( listener == null ) {
> 			setListener( type, null ); //infinite recursion
> 		}
> should be:
> 	public void setListener(String type, Object listener) {
> 		if ( listener == null ) {
> 			setListeners( type, null ); //need the plural
> 		}

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