From: Bill B. <bb...@re...> - 2011-11-14 21:08:49
|
On 11/14/11 2:20 PM, Heiko W.Rupp wrote: > > Am 14.11.2011 um 14:47 schrieb Bill Burke: > >> >> Its type erasure. Use GenericEntity as Xavier suggested. You are >> probably marshalling JAXB? The problem is Resteasy can't determine the >> type of the list by just passing it in as the generic type information >> is not available. > > What puzzles me though is that the json providers are able to correctly marshall the > List<X> > It is illegal to marshal a List in pure JAXB. :) Sure you can embed a list within an object, but on its own, nope. Plus this is a matching thing. Jackson will match anything. A Jaxb provider matches on whether or not a JAXB annotation is provided on the type. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |