Return-Path: Delivered-To: apmail-jakarta-commons-dev-archive@apache.org Received: (qmail 15355 invoked from network); 29 Oct 2002 17:00:55 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 29 Oct 2002 17:00:55 -0000 Received: (qmail 2250 invoked by uid 97); 29 Oct 2002 17:01:45 -0000 Delivered-To: qmlist-jakarta-archive-commons-dev@jakarta.apache.org Received: (qmail 2234 invoked by uid 97); 29 Oct 2002 17:01:45 -0000 Mailing-List: contact commons-dev-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Jakarta Commons Developers List" Reply-To: "Jakarta Commons Developers List" Delivered-To: mailing list commons-dev@jakarta.apache.org Received: (qmail 2223 invoked by uid 97); 29 Oct 2002 17:01:44 -0000 X-Antivirus: nagoya (v4218 created Aug 14 2002) Date: 29 Oct 2002 17:00:46 -0000 Message-ID: <20021029170046.77397.qmail@icarus.apache.org> From: jericho@apache.org To: jakarta-commons-cvs@apache.org Subject: cvs commit: jakarta-commons/httpclient/src/java/org/apache/commons/httpclient URI.java X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N jericho 2002/10/29 09:00:46 Modified: httpclient/src/java/org/apache/commons/httpclient URI.java Log: - Fix a bug of using a variable used - Add the reason code for exception - minor javadoc changes. Revision Changes Path 1.13 +14 -10 jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java Index: URI.java =================================================================== RCS file: /home/cvs/jakarta-commons/httpclient/src/java/org/apache/commons/httpclient/URI.java,v retrieving revision 1.12 retrieving revision 1.13 diff -u -r1.12 -r1.13 --- URI.java 29 Oct 2002 16:22:19 -0000 1.12 +++ URI.java 29 Oct 2002 17:00:46 -0000 1.13 @@ -1786,7 +1786,7 @@ if (length >= 2) { char[] lastDelimiter = { tmp.charAt(length - 1) }; if (validate(lastDelimiter, delims)) { - tmp = original.substring(1, length - 1); + tmp = tmp.substring(1, length - 1); length = length - 2; } } @@ -2870,7 +2870,8 @@ */ public void setRawQuery(char[] escapedQuery) throws URIException { if (!validate(escapedQuery, query)) - throw new URIException("escaped query not valid"); + throw new URIException(URIException.ESCAPING, + "escaped query not valid"); _query = escapedQuery; setUriReference(); } @@ -2886,7 +2887,8 @@ public void setEscapedQuery(String escapedQuery) throws URIException { char[] querySequence = escapedQuery.toCharArray(); if (!validate(querySequence, query)) - throw new URIException("escaped query not valid"); + throw new URIException(URIException.ESCAPING, + "escaped query not valid"); _query = querySequence; setUriReference(); } @@ -2950,7 +2952,8 @@ */ public void setRawFragment(char[] escapedFragment) throws URIException { if (!validate(escapedFragment, fragment)) - throw new URIException("escaped fragment not valid"); + throw new URIException(URIException.ESCAPING, + "escaped fragment not valid"); _fragment = escapedFragment; setUriReference(); } @@ -2966,7 +2969,8 @@ public void setEscapedFragment(String escapedFragment) throws URIException { char[] fragmentSequence = escapedFragment.toCharArray(); if (!validate(fragmentSequence, fragment)) - throw new URIException("escaped fragment not valid"); + throw new URIException(URIException.ESCAPING, + "escaped fragment not valid"); _fragment = fragmentSequence; setUriReference(); } @@ -3335,7 +3339,7 @@ * a given locale. Supports all locales recognized in JDK 1.1. *

* The distribution of this class is Servlets.com. It was originally - * written by Jason Hunter [jhunter at acm.org] with permission. + * written by Jason Hunter [jhunter at acm.org] and used by with permission. */ public static class LocaleToCharsetMap { -- To unsubscribe, e-mail: For additional commands, e-mail: