cxf-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "ASF GitHub Bot (JIRA)" <>
Subject [jira] [Commented] (CXF-7371) Error creating a webservice with lambdas in the implementing class
Date Sun, 06 Aug 2017 21:07:00 GMT


ASF GitHub Bot commented on CXF-7371:

Github user bbodnar commented on the issue:
    There is no good solution for reading classes with ASM without direct coding against concrete
ASM-classes (the "normal" (visitor-based) way isn't usable with reflection/proxying, because
the visitors are in ASM >v3 classes (no longer interfaces); the non-visitor-based ways
(tree, SAX-events) require optional ASM-libraries, whose existence must here surely not be
    I see under this circumstances the only reasonable solution to extend the current (self-made)
byte-code-parser to handle the Java8-constants.

> Error creating a webservice with lambdas in the implementing class
> ------------------------------------------------------------------
>                 Key: CXF-7371
>                 URL:
>             Project: CXF
>          Issue Type: Bug
>    Affects Versions: 3.1.11
>            Reporter: Barnabas Bodnar
>         Attachments:
> Attempting to create a webservice, where the implementing class uses lambdas in the method-bodies,
fails with the following error:
> {quote}
> java.lang.IllegalStateException
>         at org.apache.cxf.wsdl.service.factory.ClassReader.readCpool(
>         at org.apache.cxf.wsdl.service.factory.ParamReader.<init>(
>         at org.apache.cxf.wsdl.service.factory.ParamReader.<init>(
>         at org.apache.cxf.wsdl.service.factory.ParamReader.getParameterNamesFromDebugInfo(
>         at org.apache.cxf.wsdl.service.factory.DefaultServiceConfiguration.createName(
>         at org.apache.cxf.wsdl.service.factory.DefaultServiceConfiguration.getDefaultLocalName(
>         at org.apache.cxf.wsdl.service.factory.DefaultServiceConfiguration.getInParameterName(
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.getInParameterName(
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.createMessageParts(
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.createOperation(
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.createInterface(
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.buildServiceFromClass(
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.initializeServiceModel(
>         at org.apache.cxf.wsdl.service.factory.ReflectionServiceFactoryBean.create(
> {quote}
> The class-constant not understood here is *18 (InvokeDynamic)*.

This message was sent by Atlassian JIRA

View raw message