You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jmeter-dev@jakarta.apache.org by se...@apache.org on 2004/01/07 01:45:11 UTC
cvs commit: jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/util HTTPArgument.java
sebb 2004/01/06 16:45:11
Modified: src/protocol/http/org/apache/jmeter/protocol/http/util
HTTPArgument.java
Log:
Make compliant with JDK1.3
Revision Changes Path
1.12 +4 -4 jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java
Index: HTTPArgument.java
===================================================================
RCS file: /home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/util/HTTPArgument.java,v
retrieving revision 1.11
retrieving revision 1.12
diff -u -r1.11 -r1.12
--- HTTPArgument.java 17 Dec 2003 03:21:16 -0000 1.11
+++ HTTPArgument.java 7 Jan 2004 00:45:11 -0000 1.12
@@ -56,7 +56,6 @@
import java.io.Serializable;
import java.io.UnsupportedEncodingException;
-import java.net.URLDecoder;
import java.util.LinkedList;
import java.util.List;
@@ -67,6 +66,7 @@
import org.apache.jmeter.testelement.property.BooleanProperty;
import org.apache.jmeter.testelement.property.CollectionProperty;
import org.apache.jmeter.testelement.property.PropertyIterator;
+import org.apache.jorphan.util.JOrphanUtils;
public class HTTPArgument extends Argument implements Serializable
{
@@ -135,14 +135,14 @@
{
try
{
- name = URLDecoder.decode(name, "UTF-8");
- value = URLDecoder.decode(value.toString(), "UTF-8");
+ name = JOrphanUtils.decode(name, "UTF-8");
+ value = JOrphanUtils.decode(value.toString(), "UTF-8");
}
catch (UnsupportedEncodingException e)
{
// UTF-8 unsupported? You must be joking!
log.error("UTF-8 encoding not supported!");
- throw new Error(e);
+ throw new Error(e.toString());
}
}
setName(name);
---------------------------------------------------------------------
To unsubscribe, e-mail: jmeter-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: jmeter-dev-help@jakarta.apache.org