commons-issues mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jérôme Leroux (JIRA) <>
Subject [jira] [Created] (BCEL-188) Verification error when returning an Object
Date Tue, 06 Jan 2015 11:41:34 GMT
Jérôme Leroux created BCEL-188:

             Summary: Verification error when returning an Object
                 Key: BCEL-188
             Project: Commons BCEL
          Issue Type: Bug
          Components: Verifier
    Affects Versions: 6.x
            Reporter: Jérôme Leroux

The bytecode generated from the following code produces a verification error:
    public static Object test(){
        return new Object();

Here is the error message:
Pass 3b, method number 2 \['public static Object test()'\]:
Constraint violated in method 'public static Object test()':
Returned type void does not match Method's return type java.lang.Object

This message was sent by Atlassian JIRA

View raw message