sebb        2004/01/06 16:41:01

  Modified:    src/protocol/http/org/apache/jmeter/protocol/http/parser
                        HtmlParsingUtils.java
  Log:
  Make compliant with JDK1.3
  
  Revision  Changes    Path
  1.7       +4 -4      
jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java
  
  Index: HtmlParsingUtils.java
  ===================================================================
  RCS file: 
/home/cvs/jakarta-jmeter/src/protocol/http/org/apache/jmeter/protocol/http/parser/HtmlParsingUtils.java,v
  retrieving revision 1.6
  retrieving revision 1.7
  diff -u -r1.6 -r1.7
  --- HtmlParsingUtils.java     17 Dec 2003 13:03:47 -0000      1.6
  +++ HtmlParsingUtils.java     7 Jan 2004 00:41:01 -0000       1.7
  @@ -59,7 +59,6 @@
   import java.io.UnsupportedEncodingException;
   import java.net.MalformedURLException;
   import java.net.URL;
  -import java.net.URLDecoder;
   import java.util.LinkedList;
   import java.util.List;
   
  @@ -68,6 +67,7 @@
   import org.apache.jmeter.protocol.http.sampler.HTTPSampler;
   import org.apache.jmeter.testelement.property.PropertyIterator;
   import org.apache.jorphan.logging.LoggingManager;
  +import org.apache.jorphan.util.JOrphanUtils;
   import org.apache.log.Logger;
   import org.apache.oro.text.PatternCacheLRU;
   import org.apache.oro.text.regex.MalformedPatternException;
  @@ -127,13 +127,13 @@
           String query = null;
           try
           {
  -            query = URLDecoder.decode(newLink.getQueryString(),"UTF-8");
  +            query = JOrphanUtils.decode(newLink.getQueryString(),"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("Should not happen: "+e.toString());
           }
   
           if (query == null && config.getArguments().getArgumentCount() > 0)
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to