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/03c25ca7
Tree: http://git-wip-us.apache.org/repos/asf/camel/tree/03c25ca7
Diff: http://git-wip-us.apache.org/repos/asf/camel/diff/03c25ca7

Branch: refs/heads/master
Commit: 03c25ca7060c0f072d22f27789e485eda732ea55
Parents: ea6f850
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:54:42 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/03c25ca7/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 1dd79e7..e5cffac 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
@@ -58,7 +58,7 @@ public class ZipFileDataFormat extends ServiceSupport 
implements DataFormat, Dat
         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);

Reply via email to