You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Emmanuel Bourg (JIRA)" <ji...@apache.org> on 2014/04/24 11:07:17 UTC
[jira] [Updated] (BCEL-112) ARRAYLENGTH incorrectly not
StackConsumer
[ https://issues.apache.org/jira/browse/BCEL-112?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Emmanuel Bourg updated BCEL-112:
--------------------------------
Priority: Major
Environment: (was: Operating System: All
Platform: All)
Fix Version/s: 6.0
Priority: (was: P3)
Severity: (was: normal)
> ARRAYLENGTH incorrectly not StackConsumer
> -----------------------------------------
>
> Key: BCEL-112
> URL: https://issues.apache.org/jira/browse/BCEL-112
> Project: Commons BCEL
> Issue Type: Bug
> Components: Main
> Affects Versions: 5.3
> Reporter: Zappacky
> Assignee: Apache Commons Developers
> Labels: PatchAvailable
> Fix For: 6.0
>
>
> According to the JVM Instruction Set, ARRAYLENGTH pops a value from the stack
> and pushes a value to the stack. In BCEL, it only implements StackProducer, so
> it creates an incorrectly high stack height. The Constants class already has the
> correct value for it, but since the instruction does not implement StackConsumer
> it is never used. The easiest solution is to change
> src\java\src\java\org\apache\bcel\generic\ARRAYLENGTH.java to implement
> StackConsumer. This will fix the bug.
> I didn't attach a patch for this because the change is so tiny.
--
This message was sent by Atlassian JIRA
(v6.2#6252)