Class ExceptionTableVerifier


  • public class ExceptionTableVerifier
    extends Object
    Verification pass over a method's exception table: range validity, handler targets, and overlaps.
    • Constructor Detail

      • ExceptionTableVerifier

        public ExceptionTableVerifier​(ClassFile classFile)
        Creates the pass for one class.
        Parameters:
        classFile - the class whose constant pool resolves catch types
    • Method Detail

      • verify

        public void verify​(MethodEntry method,
                           ErrorCollector collector)
        Checks each exception-table entry's ranges, handler target, catch type, and overlap with other handlers.
        Parameters:
        method - the method to check
        collector - the sink for findings