arrays not working with JOXBeanInput
Brought to you by:
wutka
from ebdon_99@yahoo.com
In JOXBeanInput:
Object[] obValues = (Object[]) Array.newInstance(
desc.getPropertyType(), arrayBuild.size());
at readProperty, line 255
is incorrect. For object []'s that should be:
Object[] obValues = (Object[]) Array.newInstance(
desc.getPropertyType().getComponentType
(), arrayBuild.size());
then there also needs to be special handling for primitive
type arrays.
The current code erroneously adds an array dimension.
JOXSAXBeanInput works correctly, BTW.
Thanks!
Logged In: YES
user_id=1011119
It is very important question. My program can't run.
Logged In: YES
user_id=1011119
Need i supply example code?