This is the mail archive of the
gcc-patches@gcc.gnu.org
mailing list for the GCC project.
Re: Patch: merge File.toURI() from Classpath
- From: Ranjit Mathew <rmathew at gmail dot com>
- To: gnustuff at thisiscool dot com
- Cc: java-patches at gcc dot gnu dot org, GCC Patches <gcc-patches at gcc dot gnu dot org>
- Date: Tue, 06 Jul 2004 10:08:34 +0530
- Subject: Re: Patch: merge File.toURI() from Classpath
- References: <1089082387.3020.35.camel@localhost.localdomain> <06OJYTEDOI4ZXRND8D0S31RCBJE4Y.40ea280e@p733>
Mohan Embar wrote:
> 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.
--
Ranjit Mathew Email: rmathew AT gmail DOT com
Bangalore, INDIA. Web: http://ranjitmathew.tripod.com/