Details
-
Bug
-
Status: Resolved
-
Minor
-
Resolution: Fixed
-
3.4.0
-
None
-
Unknown
-
Regression
Description
Hello,
We use Joda time and we have custom Joda<>Java converters. For instance, you can convert Joda's ReadableInstant into Java's Date.
Since this commit from CAMEL-15114, Simple expressions can no longer convert header object to a Date object, they can only handle Date and Long types.
I can provide a pull request but I see 2 ways of solving it and I don't know which one you prefer:
- revert to exchange.getIn().getHeader(key, Date.class) because there's a DateTimeConverter.toDate(Long value) converter if you have a Long
- keep the check on Date and Long types and then try to convert to Date and then fail if it cannot be converted
Thank you
Attachments
Issue Links
- links to