Uploaded image for project: 'Commons BCEL'
  1. Commons BCEL
  2. BCEL-28

Mistake in "Peephole optimizer" example at http://jakarta.apache.org/bcel/manual.html

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Blocker
    • Resolution: Fixed
    • 5.1
    • 6.0
    • Main
    • None

    Description

      The example "Peephole optimizer" (at
      http://jakarta.apache.org/bcel/manual.html) has the following code:

      InstructionHandle[] match = (InstructionHandle[])e.next();

      This is wrong. The variable "e" should be written as "i". In other words, it
      should be changed to:

      InstructionHandle[] match = (InstructionHandle[])i.next();

      Attachments

        Activity

          People

            issues@commons.apache.org Apache Commons Developers
            thaiha@psv.com.vn Thai Ha
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: