commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Emmanuel Bourg (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (BCEL-112) ARRAYLENGTH incorrectly not StackConsumer
Date Thu, 24 Apr 2014 09:07:17 GMT

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

Mime
View raw message