[hibernate-issues] [Hibernate-JIRA] Created: (HHH-2104) Infinite recursion in org.hibernate.cfg.Configuration.setListener(String, Object)
Daniel Beer (JIRA)
noreply at atlassian.com
Mon Sep 25 11:21:24 EDT 2006
Infinite recursion in org.hibernate.cfg.Configuration.setListener(String, Object)
---------------------------------------------------------------------------------
Key: HHH-2104
URL: http://opensource.atlassian.com/projects/hibernate/browse/HHH-2104
Project: Hibernate3
Type: Bug
Components: core
Versions: 3.1 rc 1
Environment: Hibernate 3.1, but also newer versions contain this bug.
Reporter: Daniel Beer
When method org.hibernate.cfg.Configuration.setListener(String, Object) is called with second argument set to <null> (in order to remove all listeners of that type) an infinite recursion occurs.
Cause:
There is a check against null in this method which invokes a wrong method (its a simple typos):
if ( listener == null ) {
setListener( type, null );
}
Instead the method "setListeners(String, Object[])" should be invoked (notice the trailing "s" in the methods name).
--
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