[ 
https://issues.apache.org/jira/browse/CXF-4914?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13610286#comment-13610286
 ] 

Stian Soiland-Reyes commented on CXF-4914:
------------------------------------------

I am uncertain if links() with no arguments should really reset, as that is not 
what I would expect from javadoc at 
http://jax-rs-spec.java.net/nonav/2.0-SNAPSHOT/apidocs/javax/ws/rs/core/Response.ResponseBuilder.html#links(javax.ws.rs.core.Link...)
 - which only describes null-values.

However, cookie() has the same behaviour (through addHeader()) so I did the 
same. This should probably be raised as a separate issue.

                
> ResponseBuilderImpl returns null on link() and links()
> ------------------------------------------------------
>
>                 Key: CXF-4914
>                 URL: https://issues.apache.org/jira/browse/CXF-4914
>             Project: CXF
>          Issue Type: Bug
>          Components: JAX-RS
>    Affects Versions: 2.7.3
>            Reporter: Stian Soiland-Reyes
>            Priority: Minor
>              Labels: jax-rs, link, response
>             Fix For: 2.7.4
>
>   Original Estimate: 2h
>  Remaining Estimate: 2h
>
> The link() and links() methods are unimplemented in ResponseBuilderImpl.
> Rather than raise a NotImplementedException or similar, the current code 
> seems to be autogenerated by Eclipse and returns null rather than a Builder.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Reply via email to