DO NOT REPLY [Bug 24258] - Mistake in "Peephole optimizer" example at http://jakarta.apache.org/bcel/manual.html

[email protected]
Newsgroups gmane.comp.jakarta.bcel.devel
Message-ID <[email protected]>
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=24258>.
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=24258





------- Additional Comments From [email protected]  2006-02-03 03:44 -------
I meant if we change 
InstructionHandle[] match = (InstructionHandle[])e.next();
to
InstructionHandle[] match = (InstructionHandle[])i.next();

we still have another error "Duplicate Parameter e" at the line
      } catch(TargetLostException e) {

So we should change that variable name to something else (e.g. "it")
    for (Iterator it = f.search(pat); it.hasNext();) {
      InstructionHandle[] match = (InstructionHandle[]) it.next();




-- 
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.
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.