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 10:27:20 UTC

[jira] [Updated] (BCEL-145) Type.getReturnTypeSize() doesn't decode Type.getTypeSize() output

     [ https://issues.apache.org/jira/browse/BCEL-145?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Emmanuel Bourg updated BCEL-145:
--------------------------------

         Priority: Blocker
      Environment:     (was: Operating System: All
Platform: All)
    Fix Version/s: 6.0

> Type.getReturnTypeSize() doesn't decode Type.getTypeSize() output
> -----------------------------------------------------------------
>
>                 Key: BCEL-145
>                 URL: https://issues.apache.org/jira/browse/BCEL-145
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Main
>    Affects Versions: unspecified
>            Reporter: William Pugh
>            Assignee: Apache Commons Developers
>            Priority: Blocker
>             Fix For: 6.0
>
>         Attachments: fixForReturnTypeSize.txt
>
>
> The Type.getReturnTypeSize() method doesn't decode Type.getTypeSize() output.
> The same bug was present in FieldInstruction.getFieldSize(), filed and fixed as BCEL-138 https://issues.apache.org/bugzilla/show_bug.cgi?id=48280
> As a result of this bug, the BCEL calculates the wrong size of the return type for methods, leading to FindBugs going off the rails. 
> The fix is the same as to fix FieldInstruction.getFieldSize(): use Type.size() to decode the coded value.
> I've attached a patch with the fix, and I've also looked at the other uses of getTypeSize(), and all the other invocations seem OK.



--
This message was sent by Atlassian JIRA
(v6.2#6252)