|
From: Darren D. <da...@da...> - 2003-10-08 18:51:45
|
On Wednesday 08 October 2003 18:10, Kopylenko, Dmitry wrote: > Darren, > > AbstractBeanFactory.managedListToArray() tries to convert a List into > Object[]. I would guess, since "types" property is int[], that's where it's > getting ClassCastException. Am I correct? Anyone? I'm pretty sure that's why the exception occurs. As noted in the xml comment in the original post, the list of parameters (in my example, there's only one) needs somehow to be handled as an int[] since that's what the setTypes() method takes in the bean's interface. The question really was, is it therefore not possible because of the API for RdbmsOperation, or can it be acheived some other way? (Apart from creating them in code of course which is what I'm doing now, but which is inconsistent since I can declare them in an app context if they don't take bind parameters). Would a setTypes(Integer[]) method in RdbmsOperation work that simply unwraps the values and delegates to setTypes(int[]) ? Sorry for not being clearer originally! Cheers, -- Darren Davison Public Key: http://www.davison.uk.net/key.jsp |