http://issues.jabsorb.org/show_bug.cgi?id=47
Summary: Unmarshalling to Object
Product: jabsorb
Version: trunk
Status: NEW
Severity: defect
Priority: medium
Component: serializer
AssignedTo: [email protected]
ReportedBy: [EMAIL PROTECTED]
CC: [email protected]
I have a method that takes an Object[] parameter (I need it to accept an array
of Integer or String objects). I pass a JSONArray containing Integers in the
call. I end up with the following trace:
looking for serializer - java:[Ljava.lang.Object; json:org.json.JSONArray
search found serializer org.jabsorb.serializer.impl.ArraySerializer
looking for serializer - java:java.lang.Object json:java.lang.Integer
and then it fails on a "no serializer found that can unmarshall
java.lang.Integer to java.lang.Object".
I think the correct behavior for String and Integer would be to simply return
the object verbatim if the desired class is a super class (i.e. Object,
CharSequence, Magnitude, Number, Comparable, etc.)
--
Configure bugmail: http://issues.jabsorb.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.
You are the assignee for the bug.
_______________________________________________
Jabsorb-dev mailing list
[email protected]
http://lists.jabsorb.org/mailman/listinfo/jabsorb-dev