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 6719617E34 for ; Fri, 28 Aug 2015 00:12:46 +0000 (UTC) Received: (qmail 11132 invoked by uid 500); 28 Aug 2015 00:12:46 -0000 Delivered-To: apmail-commons-issues-archive@commons.apache.org Received: (qmail 11047 invoked by uid 500); 28 Aug 2015 00:12:46 -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 11036 invoked by uid 99); 28 Aug 2015 00:12:45 -0000 Received: from arcas.apache.org (HELO arcas.apache.org) (140.211.11.28) by apache.org (qpsmtpd/0.29) with ESMTP; Fri, 28 Aug 2015 00:12:45 +0000 Date: Fri, 28 Aug 2015 00:12:45 +0000 (UTC) From: "Sebb (JIRA)" To: issues@commons.apache.org Message-ID: In-Reply-To: References: Subject: [jira] [Created] (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 Sebb created BCEL-262: ------------------------- Summary: 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 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)