Got it. Thank you very much, Bill!
-Ursprüngliche Nachricht-
Von: Bill Burke [mailto:bbu...@redhat.com]
Gesendet: Dienstag, 13. August 2013 17:07
An: resteasy-users@lists.sourceforge.net
Betreff: Re: [Resteasy-users] Why is GenericEntity an abstract class?
THe sole purpose of
THe sole purpose of GenericEntity (and GenericType) is Java type
erasure. Take this example:
List list = ...;
return Response.ok(list).build();
With this, Resteasy has no clue about the generic type of "list". All
it knows is that it is a java.util.List. Java just doesn't let you
derive t
When I need an instance of GenericEntity I've to create an object of an
anonymous class derived from GenericEntity. Therefore, I'm wondering why
GenericEntity isn't a concrete class? Any hint is appreciated.
Regards,
Juergen
---