|
From: Bill B. <bb...@re...> - 2011-11-14 14:06:38
|
On 11/14/11 9:01 AM, Heiko W.Rupp wrote: > > Am 14.11.2011 um 14:47 schrieb Bill Burke: >> Its type erasure. Use GenericEntity as Xavier suggested. You are > > Ok, I understand *sigh* > >> 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. > > Would it make sense to create some method level annotation (to include in JAX-RS 2.0) > that conveys that type information? > The GenericEntity may work perfectly, but is an ugly hack, that in my opinion > obfuscates the code. > The same problem exists I believe. There's no way to do List<Foo>.class I don't htink. -- Bill Burke JBoss, a division of Red Hat http://bill.burkecentral.com |