Description --------
I think there is a bug in the FieldModler class, at line 778 (with
castor 0.9.3.9 sources). It is doing the isAssignableFrom test the wrong
way, it is more or less doing returnType.isAssignableFrom( expectedType
) where it should be the opposite. What is the problem with that? it
thinks things work together when they don't and thinks things are
mismatched when they work. Here are 2 little tests I made:
Test 1 -------------
in my class I got a method "Data[] getData()", in the mapping I say
"collection=array", at runtime, it tells me, Data[] cannot be used like
Object[] which is not true since "Object[] data = new Data[10];" works
fine.
Test 2 -------------
in my class, I got a method "Object[] getData()", in the mapping I say
"type=strings" (that means String[]), at runtime everything run just
fine, even though an Object[] may contain Integer objects that are not
at all String objects.
Conclusion ---------
Am i doing something wrong here or is it really a bug?
-----------------------------------------------------------
If you wish to unsubscribe from this mailing, send mail to
[EMAIL PROTECTED] with a subject of:
unsubscribe castor-dev