jmeter-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From pmoua...@apache.org
Subject svn commit: r1208831 - /jmeter/trunk/src/core/org/apache/jmeter/engine/util/FunctionParser.java
Date Wed, 30 Nov 2011 22:11:14 GMT
Author: pmouawad
Date: Wed Nov 30 22:11:13 2011
New Revision: 1208831

URL: http://svn.apache.org/viewvc?rev=1208831&view=rev
Log:
Read return value of read

Modified:
    jmeter/trunk/src/core/org/apache/jmeter/engine/util/FunctionParser.java

Modified: jmeter/trunk/src/core/org/apache/jmeter/engine/util/FunctionParser.java
URL: http://svn.apache.org/viewvc/jmeter/trunk/src/core/org/apache/jmeter/engine/util/FunctionParser.java?rev=1208831&r1=1208830&r2=1208831&view=diff
==============================================================================
--- jmeter/trunk/src/core/org/apache/jmeter/engine/util/FunctionParser.java (original)
+++ jmeter/trunk/src/core/org/apache/jmeter/engine/util/FunctionParser.java Wed Nov 30 22:11:13
2011
@@ -134,9 +134,9 @@ class FunctionParser {
                         if (reader.read(current) == 0 || current[0] != '}') {
                             reader.reset();// set to start of string
                             char []cb = new char[100];
-                            reader.read(cb);// return deliberately ignored
+                            int nbRead = reader.read(cb);
                             throw new InvalidVariableException
-                            ("Expected } after "+funcName+" function call in "+new String(cb));
+                            ("Expected } after "+funcName+" function call in "+new String(cb,
0, nbRead));
                         }
                         if (function instanceof TestListener) {
                             StandardJMeterEngine.register((TestListener) function);



Mime
View raw message