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: