users@jsr311.java.net

Sorting MessageBodyWriterS

From: Reto Bachmann-Gmür <reto_at_gmuer.ch>
Date: Mon, 05 Jan 2009 16:52:21 +0100

Hello

As I understand section 4.2.2 and 4.2.3 the MBW are sorted only based on
 the concreteness of the produced media-type. I'm wondering why the
closeness of the java-type seems not to play a role: say we have a class
Person that is a subclass of Agent and writers for both classes,
shouldn't a jax-rs implementation always select the Person writer when a
method returns a Person. As I understand the spec it is not determined
which writer is selected.

Regards,
Reto