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

Work on CAMEL-24573 started by Marco Carletti.
----------------------------------------------
> CXF REST: UnsupportedOperationException when copying factory bean with 
> fixed-size features list
> -----------------------------------------------------------------------------------------------
>
>                 Key: CAMEL-24573
>                 URL: https://issues.apache.org/jira/browse/CAMEL-24573
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-cxfrs
>    Affects Versions: 4.22.0
>            Reporter: Marco Carletti
>            Assignee: Marco Carletti
>            Priority: Major
>
> When creating a CXF JAXRS client factory bean from a Spring bean that has a 
> fixed-size features list (e.g., created via Arrays.asList()), an 
> UnsupportedOperationException is thrown during the copy operation.
> * Define a Spring JAXRS client factory bean with a fixed-size features list:
> {code:java}
> SpringJAXRSClientFactoryBean bean = new SpringJAXRSClientFactoryBean();
> bean.setFeatures(Arrays.asList(new SomeFeature()));
> {code}
> * Create a CXF RS endpoint from this bean via Spring configuration
> * Attempt to create a JAXRS client factory bean from the endpoint
> * Expected: Factory bean created successfully
> * Actual: java.lang.UnsupportedOperationException at AbstractList.add()



--
This message was sent by Atlassian Jira
(v8.20.10#820010)

Reply via email to