You are viewing a plain text version of this content. The canonical link for it is here.
Posted to bcel-dev@jakarta.apache.org by bu...@apache.org on 2006/02/03 03:44:49 UTC

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

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 thaiha@psv.com.vn  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.

---------------------------------------------------------------------
To unsubscribe, e-mail: bcel-dev-unsubscribe@jakarta.apache.org
For additional commands, e-mail: bcel-dev-help@jakarta.apache.org