Patch: merge File.toURI() from Classpath
Mohan Embar
gnustuff@thisiscool.com
Tue Jul 6 05:20:00 GMT 2004
>> 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/
More information about the Java-patches
mailing list