Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id AD26D200B27 for ; Wed, 22 Jun 2016 18:23:59 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id AB83A160A64; Wed, 22 Jun 2016 16:23:59 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id 2E7EC160A36 for ; Wed, 22 Jun 2016 18:23:59 +0200 (CEST) Received: (qmail 66354 invoked by uid 500); 22 Jun 2016 16:23:58 -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 66322 invoked by uid 99); 22 Jun 2016 16:23:58 -0000 Received: from arcas.apache.org (HELO arcas) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 22 Jun 2016 16:23:58 +0000 Received: from arcas.apache.org (localhost [127.0.0.1]) by arcas (Postfix) with ESMTP id 006762C1F5D for ; Wed, 22 Jun 2016 16:23:58 +0000 (UTC) Date: Wed, 22 Jun 2016 16:23:58 +0000 (UTC) From: "Mark Roberts (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Updated] (BCEL-262) FieldOrMethod.getClassName(ConstantPoolGen cpg) is deprecated MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-JIRA-FingerPrint: 30527f35849b9dde25b450d4833f0394 archived-at: Wed, 22 Jun 2016 16:23:59 -0000 [ https://issues.apache.org/jira/browse/BCEL-262?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Mark Roberts updated BCEL-262: ------------------------------ Attachment: InvokeInstruction.diff > FieldOrMethod.getClassName(ConstantPoolGen cpg) is deprecated > ------------------------------------------------------------- > > Key: BCEL-262 > URL: https://issues.apache.org/jira/browse/BCEL-262 > Project: Commons BCEL > Issue Type: Bug > Reporter: Sebb > Attachments: InvokeInstruction.diff > > > The method FieldOrMethod.getClassName(ConstantPoolGen cpg) is deprecated because it can return java.lang.Object for arrays. > Now the method is defined in the superclass for FieldInstructions and InvokeInstructions. > In the case of InvokeInstructions, can these ever reference an Array? > If not, then the method could be overridden in the InvokeInstruction class. > This new method would throw an unchecked Exception if detects an Array. > This would change the behaviour of the method for subclasses of InvokeInstruction, but they would not need to be updated. -- This message was sent by Atlassian JIRA (v6.3.4#6332)