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

Gail Badner (JIRA) noreply at atlassian.com
Mon Oct 1 19:15:25 EDT 2007


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

Gail Badner reassigned HHH-1593:
--------------------------------

    Assignee: Gail Badner

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