Hi,
this is the same known limitation as for implicit exceptions: As
System.exit() will never return the subsequent probe can never be executed.
Best regards,
-marc
On 12.12.12 14:40, Harry Terzian wrote:
> Hello,
>
> I have the following example code, i have also attached a png file with
> the colourings of two runs, one with myclass.method(1) and the other
> with myclass.method(3)
> When system.exit(anything) is called, the whole function mymethod, is
> coloured as red. When reading the shutdown hook documentation it says that:
>
> The Java virtual machine /shuts down/ in response to two kinds of
> events:
>
> * The program /exits/ normally, when the last non-daemon thread
> exits or when the |exit|
> <
http://docs.oracle.com/javase/7/docs/api/java/lang/Runtime.html#exit(int)> (equivalently,|System.exit|
> <
http://docs.oracle.com/javase/7/docs/api/java/lang/System.html#exit(int)>)
> method is invoked, or
>
> * The virtual machine is /terminated/ in response to a user