Return-Path: X-Original-To: apmail-commons-issues-archive@minotaur.apache.org Delivered-To: apmail-commons-issues-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id CDC8210CEB for ; Tue, 6 Jan 2015 11:59:33 +0000 (UTC) Received: (qmail 64439 invoked by uid 500); 6 Jan 2015 11:59:34 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 64346 invoked by uid 500); 6 Jan 2015 11:59:34 -0000 Mailing-List: contact issues-help@commons.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: issues@commons.apache.org Delivered-To: mailing list issues@commons.apache.org Received: (qmail 64335 invoked by uid 99); 6 Jan 2015 11:59:34 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 06 Jan 2015 11:59:34 +0000 Date: Tue, 6 Jan 2015 11:59:34 +0000 (UTC) From: "Emmanuel Bourg (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Commented] (BCEL-188) Verification error when returning an Object MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: quoted-printable X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 [ https://issues.apache.org/jira/browse/BCEL-188?page=3Dcom.atlassian.j= ira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=3D142660= 16#comment-14266016 ]=20 Emmanuel Bourg commented on BCEL-188: ------------------------------------- Thank you for the patch J=C3=A9r=C3=B4me. Do you have the {{TestReturn01.cl= ass}} 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=C3=A9r=C3=B4me Leroux > Attachments: BCEL-188.patch > > Original Estimate: 4h > Remaining Estimate: 4h > > The bytecode generated from the following code produces a verification er= ror: > {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)