The example is all wrong IMHO, it should look something like this

List<Number> emails = (newJacksonRepresentation<List<Number>>(rep, new 
ArrayList<Number>())).getObject();

The point here is that the constructor is looking for an object of type T.

@SuppressWarnings("unchecked")
public JacksonRepresentation(MediaType mediaType, T object) { ...

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

Reply via email to