cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Sergey Beryozkin (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (CXF-7332) JAXRS Client API doesnt support lambda
Date Tue, 18 Apr 2017 14:45:41 GMT

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

Sergey Beryozkin commented on CXF-7332:
---------------------------------------

Hi Romain, do you think it is a CXF issue or perhaps a JAX-RS one ? Can you type the code
here which does not work ?

> JAXRS Client API doesnt support lambda
> --------------------------------------
>
>                 Key: CXF-7332
>                 URL: https://issues.apache.org/jira/browse/CXF-7332
>             Project: CXF
>          Issue Type: Bug
>            Reporter: Romain Manni-Bucau
>
> {code}
> final Client client = ClientBuilder.newClient()
>                 .register(new ClientRequestFilter() {
>                     @Override
>                     public void filter(final ClientRequestContext requestContext) throws
IOException {
>                         requestContext.getHeaders().put("Authorization", singletonList("...."));
>                     }
>                 });
> {code}
> this code works but if you migrate as allowed by java 8 to filter to a lambda then cxf
doesnt identify the type properly and bypass it



--
This message was sent by Atlassian JIRA
(v6.3.15#6346)

Mime
View raw message