DO NOT REPLY [Bug 40044] New: - ArrayOutOfBoundsException

[email protected] Fri, 14 Jul 2006 12:10:58 +0000 (GMT)
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]/bugzilla/>
DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUGĀ·
RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT
<http://issues.apache.org/bugzilla/show_bug.cgi?id=40044>.
ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED ANDĀ·
INSERTED IN THE BUG DATABASE.

http://issues.apache.org/bugzilla/show_bug.cgi?id=40044

           Summary: ArrayOutOfBoundsException
           Product: BCEL
           Version: unspecified
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: normal
          Priority: P2
         Component: Main
        AssignedTo: [email protected]
        ReportedBy: [email protected]


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

-- 
Configure bugmail: http://issues.apache.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.