camel-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From davscl...@apache.org
Subject svn commit: r1300960 - in /camel/branches/camel-2.9.x: ./ components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
Date Thu, 15 Mar 2012 12:42:01 GMT
Author: davsclaus
Date: Thu Mar 15 12:42:01 2012
New Revision: 1300960

URL: http://svn.apache.org/viewvc?rev=1300960&view=rev
Log:
CAMEL-5080: Fixed camel-jt400 to use correct parameter length in case the value is longer
than the parameter length. Thanks to Joao Anacleto for the patch.

Modified:
    camel/branches/camel-2.9.x/   (props changed)
    camel/branches/camel-2.9.x/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java

Propchange: camel/branches/camel-2.9.x/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Mar 15 12:42:01 2012
@@ -1 +1 @@
-/camel/trunk:1243046,1243057,1243234,1244518,1244644,1244859,1244861,1244864,1244870,1244872,1245021,1291555,1291727,1291848,1291864,1292114,1292384,1292725,1292760,1292767,1293079,1293268,1293288,1293330,1293590,1293828,1293852,1293855,1294130,1294482,1294502,1294533,1294588,1294639,1294709,1294909,1294976,1295073,1295108,1295120,1296653,1296790,1298125,1298155,1298447,1298795,1298821,1298993,1299383,1299399,1300720-1300722,1300805,1300826,1300831
+/camel/trunk:1243046,1243057,1243234,1244518,1244644,1244859,1244861,1244864,1244870,1244872,1245021,1291555,1291727,1291848,1291864,1292114,1292384,1292725,1292760,1292767,1293079,1293268,1293288,1293330,1293590,1293828,1293852,1293855,1294130,1294482,1294502,1294533,1294588,1294639,1294709,1294909,1294976,1295073,1295108,1295120,1296653,1296790,1298125,1298155,1298447,1298795,1298821,1298993,1299383,1299399,1300720-1300722,1300805,1300826,1300831,1300959

Propchange: camel/branches/camel-2.9.x/
------------------------------------------------------------------------------
Binary property 'svnmerge-integrated' - no diff available.

Modified: camel/branches/camel-2.9.x/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.9.x/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java?rev=1300960&r1=1300959&r2=1300960&view=diff
==============================================================================
--- camel/branches/camel-2.9.x/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
(original)
+++ camel/branches/camel-2.9.x/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
Thu Mar 15 12:42:01 2012
@@ -89,7 +89,7 @@ public class Jt400PgmProducer extends De
             int outputLength = -1;
             if (input) {
                 String value = (String) param;
-                inputData = new AS400Text(value.length()).toBytes(value);
+                inputData = new AS400Text(getISeriesEndpoint().getOutputFieldLength(i)).toBytes(value);
             }
             if (output) {
                 outputLength = getISeriesEndpoint().getOutputFieldLength(i);



Mime
View raw message