Details
Description
Having
MessageContentsList list = new MessageContentsList(); list.add("haha"); list.add("hehe");
from("timer:tick") .process(new Processor() { @Override public void process(Exchange exchange) throws Exception { exchange.getIn().setBody(list); } }) .log("my body ${body}");
It prints "my body haha" but i would expect "my body [haha, hehe]" (as with ArrayList).
If MessageContentsList is used in "CXF context", the first element is return value, the other elements are Holders, so it has special logic in converter. But if use MessageContentsList in non - "CXF context", it should be treated as a general ArrayList, which can honour behaviour when converting to String.class is needed(like in to.("log...") processor)
Attachments
Attachments
Issue Links
- links to