INVOKEVIRTUAL only reports the following Exceptions:
java.lang.NoSuchFieldError
java.lang.IllegalAccessError
java.lang.NoSuchMethodError
java.lang.NullPointerException
java.lang.IncompatibleClassChangeError
java.lang.AbstractMethodError
java.lang.UnsatisfiedLinkError
How difficult would it be to have INVOKEVIRTUAL
return the declared exceptions on the Method?
Basically, for the Coverage tool, I need to find
all Handlers which can be reached from the Instruction.
(Looking at the Exception table isn't sufficient, because
the INVOKEVIRTUAL may be inside of Try/Catch which catches
something the method doesn't declare.)
Any insight?
DDP
|