]
Diego Pires Plentz resolved HHH-2104.
-------------------------------------
Assignee: Diego Pires Plentz
Resolution: Duplicate
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
Issue Type: Bug
Components: core
Affects Versions: 3.1 rc 1
Environment: Hibernate 3.1, but also newer versions contain this bug.
Reporter: Daniel Beer
Assignee: Diego Pires Plentz
Original Estimate: 1 minute
Remaining Estimate: 1 minute
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: