Class InfiniteRecursiveLoop

    • Constructor Detail

      • InfiniteRecursiveLoop

        public InfiniteRecursiveLoop​(BugReporter bugReporter)
    • Method Detail

      • visit

        public void visit​(org.apache.bcel.classfile.Method obj)
        Overrides:
        visit in class BetterVisitor
      • sawOpcode

        public void sawOpcode​(int seen)
        Signal an infinite loop if either: we see a call to the same method with the same parameters, or we see a call to the same (dynamically dispatched method), and there has been no transfer of control.
        Specified by:
        sawOpcode in class OpcodeStackDetector
        See Also:
        OpcodeStackDetector.beforeOpcode(int)