Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Invalid
-
2.12.2
-
None
-
None
-
Unknown
Description
Hello guys!
I faced an issue while trying to marshal a list of annotated POJOs to an OutPutStream using org.apache.camel.dataformat.bindy.fixed.BindyFixedLengthDataFormat .
The cause of the issue is that if the processing body is of type java.util.List, then
the BindyFixedLengthDataFormat expects the elements of the list to be of type Map<String, Object> but
they are really not and as a result java.lang.ClassCastException exception is thrown.
Please see attached junit tests.