The TCK test lead and I are both interpreting
ContainerResponseContext.getEntityAnnotations()
IMO, if the app code has attached an entity view
ResponseBuilder.entity(Object, Annotation[])
then only those attached annotations should be returned by
getEntityAnnotations().
The TCK test lead is saying that both those annotations *AND* the
annotations on the resource method should be returned.
The language in the spec is a tiny bit unclear, but, IMO, it makes no
sense to include both of them. The whole point of
ResponseBuilder.entity(Object, Annotation[]) is so that you can
exclusively provide the annotations attached to the entity.
--
Bill Burke
JBoss, a division of Red Hat
http://bill.burkecentral.com