[ 
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)

Reply via email to