[hibernate-issues] [Hibernate-JIRA] Resolved: (HHH-2104) Infinite recursion in org.hibernate.cfg.Configuration.setListener(String, Object)
Diego Pires Plentz (JIRA)
noreply at atlassian.com
Mon Sep 10 18:57:14 EDT 2007
[ http://opensource.atlassian.com/projects/hibernate/browse/HHH-2104?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
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: 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