From: Shawn K. (JIRA) <no...@at...> - 2006-03-24 18:56:21
|
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-1593?page=comments#action_22571 ] Shawn Kerstetter commented on HHH-1593: --------------------------------------- Actually, looking more closely, you are also going to need the cast: setListeners( type, (Object[]) null ); //need the plural > 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.1.3 > Reporter: Shawn Kerstetter > > > 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 |