This is the mail archive of the
java-patches@gcc.gnu.org
mailing list for the Java project.
Re: Patch: merge File.toURI() from Classpath
- From: Mohan Embar <gnustuff at thisiscool dot com>
- To: Ranjit Mathew <rmathew at gmail dot com>
- Cc: java-patches at gcc dot gnu dot org
- Date: Tue, 06 Jul 2004 00:15:32 -0500
- Subject: Re: Patch: merge File.toURI() from Classpath
- Reply-to: gnustuff at thisiscool dot com
>> Just out of curiosity, why is the result of new InternalError()
>> being explicitly cast to an InternalError?
>
>Look closely - it's the return value (a Throwable) from
>initCause() that is being cast into an InternalError:
>
>+ // Can't happen.
>+ throw (InternalError) new InternalError("Unconvertible file: "
>+ + this).initCause(use);
>
>Ranjit.
Doh. Time to watch some mindless TV.
-- Mohan
http://www.thisiscool.com/
http://www.animalsong.org/