CAMEL-9233 fix Exchange is added as parameter for the TypeConverter
Project: http://git-wip-us.apache.org/repos/asf/camel/repo Commit: http://git-wip-us.apache.org/repos/asf/camel/commit/73ef3c6d Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/73ef3c6d Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/73ef3c6d Branch: refs/heads/camel-2.15.x Commit: 73ef3c6d46eef0b23c06b226af4ce1bf1e9949ab Parents: 7908160 Author: rendesg <gabor.rendes.chilis...@gmail.com> Authored: Sat Oct 17 21:38:40 2015 +0200 Committer: Claus Ibsen <davscl...@apache.org> Committed: Sun Oct 18 08:56:08 2015 +0200 ---------------------------------------------------------------------- .../org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) ---------------------------------------------------------------------- http://git-wip-us.apache.org/repos/asf/camel/blob/73ef3c6d/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java ---------------------------------------------------------------------- diff --git a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java index 884c608..f3bb63b 100644 --- a/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java +++ b/components/camel-zipfile/src/main/java/org/apache/camel/dataformat/zipfile/ZipFileDataFormat.java @@ -55,7 +55,7 @@ public class ZipFileDataFormat implements DataFormat { ZipOutputStream zos = new ZipOutputStream(stream); zos.putNextEntry(new ZipEntry(filename)); - InputStream is = exchange.getContext().getTypeConverter().mandatoryConvertTo(InputStream.class, graph); + InputStream is = exchange.getContext().getTypeConverter().mandatoryConvertTo(InputStream.class, exchange, graph); try { IOHelper.copy(is, zos);