Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 90033 invoked from network); 5 Mar 2008 13:56:53 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 5 Mar 2008 13:56:53 -0000 Received: (qmail 97868 invoked by uid 500); 5 Mar 2008 13:56:48 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 97835 invoked by uid 500); 5 Mar 2008 13:56:48 -0000 Mailing-List: contact commits-help@harmony.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@harmony.apache.org Delivered-To: mailing list commits@harmony.apache.org Received: (qmail 97816 invoked by uid 99); 5 Mar 2008 13:56:48 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 05:56:48 -0800 X-ASF-Spam-Status: No, hits=-2000.0 required=10.0 tests=ALL_TRUSTED X-Spam-Check-By: apache.org Received: from [140.211.11.140] (HELO brutus.apache.org) (140.211.11.140) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 05 Mar 2008 13:56:21 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id BF70C234C093 for ; Wed, 5 Mar 2008 05:55:40 -0800 (PST) Message-ID: <1250152287.1204725340783.JavaMail.jira@brutus> Date: Wed, 5 Mar 2008 05:55:40 -0800 (PST) From: "Sian January (JIRA)" To: commits@harmony.apache.org Subject: [jira] Assigned: (HARMONY-5573) [classlib][pack200] Caught exceptions may not resolve correctly In-Reply-To: <1334917901.1204671220865.JavaMail.jira@brutus> MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-Virus-Checked: Checked by ClamAV on apache.org [ https://issues.apache.org/jira/browse/HARMONY-5573?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ] Sian January reassigned HARMONY-5573: ------------------------------------- Assignee: Sian January > [classlib][pack200] Caught exceptions may not resolve correctly > --------------------------------------------------------------- > > Key: HARMONY-5573 > URL: https://issues.apache.org/jira/browse/HARMONY-5573 > Project: Harmony > Issue Type: Bug > Components: Classlib > Environment: All Pack200 > Reporter: Andrew Cornwall > Assignee: Sian January > Attachments: main-good.patch > > > It's possible for a class to refer to an exception type in the exception_table only (and not in the body of the method). That is, the class could have a method of the form: > foo() { > try { > // some code that doesn't reference FooException > } > catch (FooException ex) { > } > If something else in the class refers to FooException, the ClassConstantPool will contain FooException so the exception_table will be able to resolve it. However, if nothing else in the class refers to FooException, the ClassConstantPool will not contain it - so the class will not resolve properly. > This patch fixes the code so the catch_type is added to the ClassConstantPool so it will always resolve correctly. -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.