Hello,
I think there is a bug in org.hibernate.cfg.Configuration. The line
Code:
eventListeners.setSaveOrUpdateEventListeners( ( SaveOrUpdateEventListener[] ) listeners );
throws a CastClassException. I tried this litte program:
Code:
class MyClass {
public static void main(String[] args) {
Object[] listeners = new Object[1];
listeners[0]=new MyClass();
MyClass[] results = (MyClass[]) listeners;
System.out.println("Finished");
}
}
and it also throws a ClassCastException.
I wonder if this has something to do with the java version I'm using, since I don't think that I'm the first one who is using event listeners.
I hope I'm not wrongly reporting this error.
Best regards,
Björn
Hibernate version: 3.1beta1
Java version:1.5.0
Code: