Class InfiniteRecursiveLoop

All Implemented Interfaces:
Detector, Priorities, StatelessDetector, Cloneable, org.apache.bcel.classfile.Visitor

public class InfiniteRecursiveLoop extends OpcodeStackDetector implements StatelessDetector
  • Constructor Details

    • InfiniteRecursiveLoop

      public InfiniteRecursiveLoop(BugReporter bugReporter)
  • Method Details

    • visit

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

      public void sawBranchTo(int target)
      Overrides:
      sawBranchTo in class DismantleBytecode
    • 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: