Hi,
It looks like the fix for HHH-871 needs to be applied to parseListener as well.
Let me know if you need more info or a testcase.
FYI, I didn't run the hibernate testsuite so I'm not sure if this regression would be caught by it.
Hibernate version: 3.1beta2 + org.hibernate.cfg.Configuration rev 1.89
Full stack trace of any exception that occurs: Code:
java.lang.ClassCastException
at org.hibernate.cfg.Configuration.setListeners(Configuration.java:1656)
at org.hibernate.cfg.Configuration.setListeners(Configuration.java:1481)
at org.hibernate.cfg.Configuration.parseListener(Configuration.java:1465)
at org.hibernate.cfg.Configuration.parseSessionFactory(Configuration.java:1388)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1354)
at org.hibernate.cfg.Configuration.doConfigure(Configuration.java:1330)
at org.hibernate.cfg.Configuration.configure(Configuration.java:1250)
at com.my.test.Test.setUp(Test.java:86)
at junit.framework.TestCase.runBare(TestCase.java:125)
at junit.framework.TestResult$1.protect(TestResult.java:106)
at junit.framework.TestResult.runProtected(TestResult.java:124)
at junit.framework.TestResult.run(TestResult.java:109)
at junit.framework.TestCase.run(TestCase.java:118)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.runTests(RemoteTestRunner.java:478)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.run(RemoteTestRunner.java:344)
at org.eclipse.jdt.internal.junit.runner.RemoteTestRunner.main(RemoteTestRunner.java:196)
Thanks.