Hi Paul,
This sounds like a real bug. I'll file a bug report.
The exception should either always be caught or never.
Have fun,
Arthur van Hoff
> From ###@###.### Tue Jan 2 14:38:46 1996
> Comments: Authenticated sender is <###@###.###>
> From: "Paul Ambrose" <###@###.###>
> To: Arthur.Vanhoff@Eng (Arthur van Hoff)
> Subject: Does this ring any bells?
>
> Hi Arthur,
>
> Before submitting this to the bugs queue, I wanted to run it past you
> because you may recognize the problem.
>
> If I load and instantiate a class using my own ClassLoader subclass,
> and then invoke a method in the new class that throws an
> exception, the invoked method returns from the point
> where the exception is thrown, but the calling program
> does not catch the Exception.
>
> If I add:
>
> try throw Exception(); catch (Exception e) {;}
>
> *anywhere* in the code preceeding the method invocation,
> the exception is caught properly by the calling program and
> everything works properly.
>
> Somewhere, somehow, the exception handling mecahnism
> is being enabled by the above line.
>
> I spent 4 hours playing with this last night, so I am fairly
> confident that I am not wasting your time with this.
>
> Any thoughts?
>
> Paul