Bohdan created CAMEL-12269:
------------------------------

             Summary: Bindy - Incorrect handling of values enclosed in quotes 
with regex separator
                 Key: CAMEL-12269
                 URL: https://issues.apache.org/jira/browse/CAMEL-12269
             Project: Camel
          Issue Type: Bug
          Components: camel-bindy
    Affects Versions: 2.20.2
            Reporter: Bohdan


I try to unmarshal CSV file into the class below:
{code:java}
@CsvRecord(separator = "[,;]", skipFirstLine = true)
public class Example {
    @DataField(pos = 1)
    private String field1;

    @DataField(pos = 1)
    private String field2;
}{code}
CSV file:
{code:java}
header1,header2
"value_1","value,2"
{code}
After unmarshalling I get the following value for field2: "value[,;]2".

However, the correct value for field2 should be "value,2".



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to