camel-commits mailing list archives

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

URL: http://svn.apache.org/viewvc?rev=1300962&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.8.x/   (props changed)
    camel/branches/camel-2.8.x/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java

Propchange: camel/branches/camel-2.8.x/
------------------------------------------------------------------------------
--- svn:mergeinfo (original)
+++ svn:mergeinfo Thu Mar 15 12:44:38 2012
@@ -1,2 +1,2 @@
-/camel/branches/camel-2.9.x:1227549,1228229,1229567,1234054,1236672,1238942,1240157,1241006,1241489,1243052,1243058,1244875,1244877,1291871,1292116,1292389,1292726,1292769,1293082,1293935,1294044,1294589,1294914,1294978,1299165,1300806,1300835,1300845
-/camel/trunk:1226860,1227540,1228223,1229565,1234043,1236667,1238937,1240025,1240950,1240967,1241482,1243046,1243057,1244870,1244872,1291848,1292114,1292384,1292725,1292767,1293079,1293828,1293855,1294588,1294909,1294976,1298993,1300805,1300826,1300831
+/camel/branches/camel-2.9.x:1227549,1228229,1229567,1234054,1236672,1238942,1240157,1241006,1241489,1243052,1243058,1244875,1244877,1291871,1292116,1292389,1292726,1292769,1293082,1293935,1294044,1294589,1294914,1294978,1299165,1300806,1300835,1300845,1300960
+/camel/trunk:1226860,1227540,1228223,1229565,1234043,1236667,1238937,1240025,1240950,1240967,1241482,1243046,1243057,1244870,1244872,1291848,1292114,1292384,1292725,1292767,1293079,1293828,1293855,1294588,1294909,1294976,1298993,1300805,1300826,1300831,1300959

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

Modified: camel/branches/camel-2.8.x/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
URL: http://svn.apache.org/viewvc/camel/branches/camel-2.8.x/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java?rev=1300962&r1=1300961&r2=1300962&view=diff
==============================================================================
--- camel/branches/camel-2.8.x/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
(original)
+++ camel/branches/camel-2.8.x/components/camel-jt400/src/main/java/org/apache/camel/component/jt400/Jt400PgmProducer.java
Thu Mar 15 12:44:38 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