>/http/RequestImpl.java:307: exception
> org.apache.commons.httpclient.HttpException has already been caught [javac]
> } catch (HttpException e) {
> [javac] ^
> [javac] 1 error
>
> BUILD FAILED
> file:/home/rubys/jakarta/jakarta-commons/latka/build.xml:298: Compile
> failed; see the compiler error output for details.
Can someone apply this patch which swaps the order of the catch statements
causing this build failure?
Many Thanks,
Janek Bogucki
Index: src/java/org/apache/commons/latka/http/RequestImpl.java
===================================================================
RCS file:
/home/cvspublic/jakarta-commons/latka/src/java/org/apache/commons/latka/http/RequestImpl.java,v
retrieving revision 1.31
diff -u -r1.31 RequestImpl.java
--- src/java/org/apache/commons/latka/http/RequestImpl.java 18 Sep 2002 16:03:36
-0000 1.31
+++ src/java/org/apache/commons/latka/http/RequestImpl.java 24 Sep 2002 17:18:15
+-0000
@@ -301,11 +301,11 @@
_session.setReferer(new URL(_targetURL.getProtocol(), _host, _port,
_httpMethod.getPath()));
+ } catch (HttpException e) {
+ throw new IOException(e.toString());
} catch (IOException e) {
// rethrow it after closing the connection
throw e;
- } catch (HttpException e) {
- throw new IOException(e.toString());
} finally {
try {
closeConnection();
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>