You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2014/04/24 10:53:15 UTC

[jira] [Updated] (BCEL-28) Mistake in "Peephole optimizer" example at http://jakarta.apache.org/bcel/manual.html

     [ https://issues.apache.org/jira/browse/BCEL-28?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated BCEL-28:
-------------------------------

         Priority: Blocker
      Environment:     (was: Operating System: other
Platform: Other)
    Fix Version/s: 6.0
         Priority:   (was: P4)
         Severity:   (was: normal)

> Mistake in "Peephole optimizer" example at http://jakarta.apache.org/bcel/manual.html
> -------------------------------------------------------------------------------------
>
>                 Key: BCEL-28
>                 URL: https://issues.apache.org/jira/browse/BCEL-28
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: 5.1
>            Reporter: Thai Ha
>            Assignee: Apache Commons Developers
>            Priority: Blocker
>             Fix For: 6.0
>
>
> 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();



--
This message was sent by Atlassian JIRA
(v6.2#6252)