Hi Jürgen,

sorry, that it takes a long time for your problem with returning generic 
objects. Do you used the following?

List<String> strings = ...
GenericEntity<List<String>> entity = new GenericEntity<List<String>>(strings) 
{};
return Response.ok(entity).build();


directly evaluation of List<String> generally does not work in Java. So 
the GenericEntity was created in JAX-RS. There was a discussion in the 
JAX-RS mailing lists about this, see
https://jsr311.dev.java.net/servlets/SearchList?list=users&searchText=GenericEntity&defaultField=body&Search=Search
 
<https://jsr311.dev.java.net/servlets/SearchList?list=users&searchText=GenericEntity&defaultField=body&Search=Search>
and
https://jsr311.dev.java.net/servlets/SearchList?list=dev&searchText=GenericEntity&defaultField=body&Search=Search
 
<https://jsr311.dev.java.net/servlets/SearchList?list=dev&searchText=GenericEntity&defaultField=body&Search=Search>

best regards
   Stephan

------------------------------------------------------
http://restlet.tigris.org/ds/viewMessage.do?dsForumId=4447&dsMessageId=1245648

Reply via email to