Title: Message
Folks,
            I've done a little tinkering around and it turns out that what actually gets returned is an array of the primitive type.
So I've got an EJB bean that's exposed as a web service and it's returning a Double array yet when the call returns, the
output's ObjectPart corresponding to the right name only casts to the primitive type, (double [ ]).
 
I get a class cast exception thrown if I attempt to cast to the wrapper object (Double []).
This could unfortunately mean a series of instanceof if statements that could potentially be a bit of a nightmare.
 
There's a reflective Array class java.lang.reflect.Array that exists for arrays of objects unfortunately
there doesn't seem to be anything available for simple primitive arrays.
Has anyone any ideas on how to get around this reflectively?
 
Thanks in advance,
Mark.
 

Reply via email to