You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@commons.apache.org by "Sarah Murray (JIRA)" <ji...@apache.org> on 2015/03/07 01:26:39 UTC

[jira] [Commented] (BCEL-188) Invalid verification of the returned value of a method

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

Sarah Murray commented on BCEL-188:
-----------------------------------

[~jejecool] can you add the source for the classfile as well?

> Invalid verification of the returned value of a method
> ------------------------------------------------------
>
>                 Key: BCEL-188
>                 URL: https://issues.apache.org/jira/browse/BCEL-188
>             Project: Commons BCEL
>          Issue Type: Bug
>          Components: Verifier
>            Reporter: Jérôme Leroux
>             Fix For: 6.0
>
>         Attachments: BCEL-188-2.patch, BCEL-188-3.patch, BCEL-188-3.zip, 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}
> The problem also occurs for all kind of returned value: primitive types (byte, int, etc.), array , null, object, …



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