Huh? test/Stock.java
Zenin
zenin at best.com
Mon Jul 7 07:32:35 PDT 1997
TAKE ME OFF THIS MAILING LIST NOW!!!!
> From kaffe-approval at soi.city.ac.uk Sun Jul 6 12:41:36 1997
> X-Authentication-Warning: vega.soi.city.ac.uk: lp set sender to owner-kaffe at soi.city.ac.uk using -f
> Date: Sun, 6 Jul 1997 10:03:21 -0700
> Message-Id: <199707061703.KAA05843 at fasolt.mtcc.com>
> From: Michael Thomas <mike at mtcc.com>
> To: kaffe at kaffe.org
> Subject: Huh? test/Stock.java
> In-Reply-To: <19970706115327.24075 at xaa.stack.nl>
> References: <19970706115327.24075 at xaa.stack.nl>
> X-Face: &,heK/V66p?[2!i|tVn,9lN0TUvEv7:9FzXREj/AuzN4m<D]vnFJ>u!4x[/Z4t{V}~L]+Sk
> @RFNnJEg~WZ/(8<`5a),-7ukALWa^&?&D2R0CSG3kO5~#6JxLF\d,g">$%B!0w{W)qIhmwhye104zd
> bUcI'1!
> Sender: owner-kaffe at soi.city.ac.uk
> Precedence: bulk
> Reply-To: kaffe at kaffe.org
>
> Mark Huizer writes:
> > Here it generates an error that it never reaches the second cache
> > statement (Stock.java:27: catch not reached.)
> >
> > Isn't it supposed to be able to reach it? Or am I so wrong in my
> > understanding that one has to check for all exceptions in one catch and
> > try to find out what it is in other ways?
>
> The compiler is correct here, I think.
> MalformedURLException is a subclass of
> IOException. Since it executes catch's in
> order and IOException is a valid Exception
> it will execute it leaving the URLException
> orphaned.
> --
> Michael Thomas (mike at mtcc.com http://www.mtcc.com/~mike/)
> "I dunno, that's an awful lot of money."
> Beavis
>
>
More information about the kaffe
mailing list