camel-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nathan Wray (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (CAMEL-7731) DefaultBeanRowMapper broken
Date Thu, 21 Aug 2014 16:43:11 GMT

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

Nathan Wray updated CAMEL-7731:
-------------------------------

    Patch Info: Patch Available

> DefaultBeanRowMapper broken
> ---------------------------
>
>                 Key: CAMEL-7731
>                 URL: https://issues.apache.org/jira/browse/CAMEL-7731
>             Project: Camel
>          Issue Type: Bug
>          Components: camel-jdbc
>    Affects Versions: 2.13.2
>            Reporter: Nathan Wray
>         Attachments: patchfile.txt
>
>
> DefaultBeanRowMapper current version does not upper-case when it should, due to what
appears to be a copy paste error (note the toLowerCase in both branches)
> if (toUpper) {
> 	char upper = Character.toLowerCase(ch);
> 	sb.append(upper);
> 	// reset flag
> 	toUpper = false;
> } else {
> 	char lower = Character.toLowerCase(ch);
> 	sb.append(lower);
> }
> should be
> if (toUpper) {
> 	char upper = Character.toUpperCase(ch);
> 	sb.append(upper);
> 	// reset flag
> 	toUpper = false;
> } else {
> 	char lower = Character.toLowerCase(ch);
> 	sb.append(lower);
> }



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message