[ https://issues.apache.org/jira/browse/CAMEL-7926?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14182825#comment-14182825 ]
Claus Ibsen commented on CAMEL-7926: ------------------------------------ Please use the user forum / mailing list for questions / help with this. > header "CamelFileLastModified" returned as String in Processor > -------------------------------------------------------------- > > Key: CAMEL-7926 > URL: https://issues.apache.org/jira/browse/CAMEL-7926 > Project: Camel > Issue Type: Bug > Affects Versions: 2.8.6 > Reporter: Alexandru Repede > Priority: Minor > > Given a class that implements _Processor_ > When trying to get _Exchange.FILE_LAST_MODIFIED_ as a java.util.Date, the > result is null. When calling > {noformat} > Date lastModification = > exchange.getIn().getHeader(Exchange.FILE_LAST_MODIFIED, Date.class); > {noformat} > _lastModification_ is null. > Upon debugging, discovered that the header in question is a String. The call > {noformat} > exchange.getIn().getHeader(Exchange.FILE_LAST_MODIFIED) > {noformat} > returns a not null String value. > How is this possible when even _ExpressionBuilder.dateExpression_ does > {noformat} > Date date; > date = exchange.getIn().getHeader(Exchange.FILE_LAST_MODIFIED, Date.class); > {noformat} -- This message was sent by Atlassian JIRA (v6.3.4#6332)