----- Original Message -----
From: "Steve Loughran" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Monday, March 26, 2001 7:24 PM
Subject: Re: odd code in Get.java
>
> However the final place I found it was bug ID 4160499
> (http://developer.java.sun.com/developer/bugParade/bugs/4160499.html),
which
> covers how the HttpUrlConnection class will generate a FileNotFound
> Exception when a 4XX error comes in -the second attempt to get the input
> stream will succeed.

So I've been tacking in more robustness into my refactoring of get,java,
along with getting the setproxy task to work in java1.1 , and yes, it is
easy to raise a file not found exception once you know what to do.

More to the point, you can do it the shipping get.java with the task

  <target name="test7">
    <get src="http://www.apache.org/missingfilewithoddextension.avz";
     dest="get.tmp"/>
  </target>

The fault isn't in costin's code; it's in the stuff I added to do timestamp
based loads -so the bug has been present for months and months. Oops :-) At
least nobody has noticed yet.

I'm going to fix it in my reworked implementation -expect it soon- after
which the change can go back into Get.java, although I'm doing the legacy
support for this task onto the new codebase.

Should I log this bug on bugzilla?

-steve

Reply via email to