From: Konstantin I. (JIRA) <no...@at...> - 2006-05-19 16:22:14
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1593?page=all ] Konstantin Ignatyev updated HHH-1593: ------------------------------------- Attachment: Configuration.patch Patch to org.hibernate.cfg.Configuration > Infinite loop/StackOverflow when calling configuration.setListener(null) > ------------------------------------------------------------------------ > > Key: HHH-1593 > URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-1593 > Project: Hibernate3 > Type: Bug > Components: core > Versions: 3.1.3, 3.1 > Reporter: Shawn Kerstetter > 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 |