Uploaded image for project: 'CXF'
  1. CXF
  2. CXF-7332

JAXRS Client API doesnt support lambda

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 3.2.7
    • None
    • None
    • Unknown

    Description

      final Client client = ClientBuilder.newClient()
                      .register(new ClientRequestFilter() {
                          @Override
                          public void filter(final ClientRequestContext requestContext) throws IOException {
                              requestContext.getHeaders().put("Authorization", singletonList("...."));
                          }
                      });
      

      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

      Attachments

        Activity

          People

            coheigea Colm O hEigeartaigh
            romain.manni-bucau Romain Manni-Bucau
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: