When I look at the byte codes produced by the code snip:

try {
        <try stuff here>
}
catch (Exception e) {
        <catch stuff here>
        throw e;
}
finally {
        <finally stuff here>
}

My complier (JIKES) generates an internal catch in order to do a jsr to the
finally clause.

When the BCEL code dumps the exception handler(s) table it looks like this:

Exception handler(s) =
>From    To      Handler Type
0       8       14      java.lang.Exception(8)
0       23      29      <Any exception>(0)

When I try to add a "master" try catch around code that I am instrumenting I
would like to use the <Any exception>(0) ObjectType, but, so far, the best I
have been able to do is to use the Type.THROWABLE which ends up looking like
this:

Exception handler(s) =
>From    To      Handler Type
7       15      21      java.lang.Exception(8)
7       30      36      <Any exception>(0)
0       60      61      java.lang.Throwable(66)

My first question is this:  Can I (or How do I) create the ObjectType which
would give me the <Any exception>(0) ObjectType?

My second question is this:  Would there be any real difference between the
ObjectType <Any exception>(0) and the ObjectType java.lang.Throwable(66)

Thanks in advance for you help in this matter.


rm -rf /bin/laden/������ 
Burt Wagner, Senior Software Engineer
NPULSE Software, Inc. at Hotbank
100 Superior Plaza Way, Suite 200
Superior, Colorado 80027
Work: (303) 642-4457 WFax: (303) 642-4002
Home: (303) 417-0493 HFax: (303) 417-0494
Cell: (303) 589-3095


--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to