Component/s: JSR 286 Portlet Specification Errata
The portlet specification in section 12.5.1 Content Type states:
For the render response the setContentType method must throw an IllegalArgumentException if the content type set does not match (including wildcard matching) any of the content types returned by the getResponseContentType method of the PortletRequest objectcxii.
However, this is not reflected in the apidocs for the method.
We need to add a "Throws" section to the description. I would also use the opportunity to fix the description ... seems to be worded strangely. I believe the following captures the intention: