You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@cxf.apache.org by "Colm O hEigeartaigh (JIRA)" <ji...@apache.org> on 2018/09/10 13:18:00 UTC

[jira] [Updated] (CXF-7332) JAXRS Client API doesnt support lambda

     [ https://issues.apache.org/jira/browse/CXF-7332?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Colm O hEigeartaigh updated CXF-7332:
-------------------------------------
    Fix Version/s: 3.2.7

> 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
>            Assignee: Colm O hEigeartaigh
>            Priority: Major
>             Fix For: 3.2.7
>
>
> {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
(v7.6.3#76005)