You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@camel.apache.org by "Claus Ibsen (JIRA)" <ji...@apache.org> on 2008/11/10 17:56:05 UTC
[jira] Resolved: (CAMEL-1070) org.apache.camel.Message -
hasAttachments is buggy
[ https://issues.apache.org/activemq/browse/CAMEL-1070?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Claus Ibsen resolved CAMEL-1070.
--------------------------------
Resolution: Fixed
> org.apache.camel.Message - hasAttachments is buggy
> --------------------------------------------------
>
> Key: CAMEL-1070
> URL: https://issues.apache.org/activemq/browse/CAMEL-1070
> Project: Apache Camel
> Issue Type: Bug
> Components: camel-core
> Affects Versions: 1.4.0, 1.5.0
> Reporter: Claus Ibsen
> Assignee: Claus Ibsen
> Fix For: 1.5.1, 2.0.0
>
>
> I must use
> if (exchange.getIn().getAttachments().size() > 0) {
> Instead of
> if (exchange.getIn().hasAttachments()) {
> As the latter always returns false. Or at least returns false even though the size is > 0
--
This message is automatically generated by JIRA.
-
You can reply to this email to add a comment to the issue online.