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 14:53:16 UTC

[jira] [Updated] (BCEL-85) ArrayOutOfBoundsException in InstructionFinder

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

Emmanuel Bourg updated BCEL-85:
-------------------------------

    Summary: ArrayOutOfBoundsException in InstructionFinder  (was: ArrayOutOfBoundsException)

> ArrayOutOfBoundsException in InstructionFinder
> ----------------------------------------------
>
>                 Key: BCEL-85
>                 URL: https://issues.apache.org/jira/browse/BCEL-85
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Main
>            Reporter: Bill Doran
>            Assignee: Apache Commons Developers
>             Fix For: 6.0
>
>
> Using InstructionFinder(String pattern, InstructionHandler handler), if pattern
> is at the end of instruction list exception occurrs. The bug is in the following
> method:
>  public final Iterator search( String pattern, InstructionHandle from,
> CodeConstraint constraint )
> int lenExpr = (endExpr - startExpr) + 1;
> should be
> int lenExpr = (endExpr - startExpr);



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