How to record exceptions masked by finally block's exceptions in Java?

The problem I think is that even with AOP you can not intercept the exception consumption process. With AOP you could capture, say, all of the exceptions that are created, but you can't know when they're consumed.

There's a JNI method named "ExceptionCheck()" which, not surprisingly, checks for a pending exception. You can call it in the middle of a native method to see if some prior call has thrown an exception which is waiting around for the JNI method to return before it's actually thrown. I wonder if you could call a native method from finally, then tried to use ExceptionCheck to see if there's a pending exception, if that'd work.

I have no idea whether it would but I'd say it's worth a try.

I cant really gove you an answer,but what I can give you is a way to a solution, that is you have to find the anglde that you relate to or peaks your interest. A good paper is one that people get drawn into because it reaches them ln some way.As for me WW11 to me, I think of the holocaust and the effect it had on the survivors, their families and those who stood by and did nothing until it was too late.

Related Questions