DO NOT REPLY [Bug 24258] New: - Mistake in "Peephole optimizer" example at http://jakarta.apache.org/bcel/manual.html
| 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://nagoya.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://nagoya.apache.org/bugzilla/show_bug.cgi?id=24258
Mistake in "Peephole optimizer" example at http://jakarta.apache.org/bcel/manual.html
Summary: Mistake in "Peephole optimizer" example at
http://jakarta.apache.org/bcel/manual.html
Product: BCEL
Version: 5.1
Platform: Other
OS/Version: Other
Status: NEW
Severity: Normal
Priority: Other
Component: Main
AssignedTo: [email protected]
ReportedBy: [email protected]
The example "Peephole optimizer" (at
http://jakarta.apache.org/bcel/manual.html) has the following code:
InstructionHandle[] match = (InstructionHandle[])e.next();
This is wrong. The variable "e" should be written as "i". In other words, it
should be changed to:
InstructionHandle[] match = (InstructionHandle[])i.next();