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] [Commented] (BCEL-188) Verification error when returning an Object
Date Tue, 06 Jan 2015 11:59:34 GMT

    [ https://issues.apache.org/jira/browse/BCEL-188?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14266016#comment-14266016
] 

Emmanuel Bourg commented on BCEL-188:
-------------------------------------

Thank you for the patch Jérôme. Do you have the {{TestReturn01.class}} file you crafted
with the invalid return?

> Verification error when returning an Object
> -------------------------------------------
>
>                 Key: BCEL-188
>                 URL: https://issues.apache.org/jira/browse/BCEL-188
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Verifier
>    Affects Versions: 6.x
>            Reporter: Jérôme Leroux
>         Attachments: BCEL-188.patch
>
>   Original Estimate: 4h
>  Remaining Estimate: 4h
>
> The bytecode generated from the following code produces a verification error:
> {code:java}
>     public static Object test(){
>         return new Object();
>     }
> {code}
> Here is the error message:
> {quote}
> Pass 3b, method number 2 \['public static Object test()'\]:
> VERIFIED_REJECTED
> Constraint violated in method 'public static Object test()':
> Returned type void does not match Method's return type java.lang.Object
> {quote}



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Mime
View raw message