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

Branch: refs/heads/camel-2.16.x
Commit: 3a56fa8f66ca07d796462eb36a531079f8c88178
Parents: 8425e97
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:55:45 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/3a56fa8f/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