Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 18990 invoked from network); 4 Mar 2008 23:06:51 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Mar 2008 23:06:51 -0000 Received: (qmail 90935 invoked by uid 500); 4 Mar 2008 23:06:47 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 90913 invoked by uid 500); 4 Mar 2008 23:06:47 -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 90904 invoked by uid 99); 4 Mar 2008 23:06:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 04 Mar 2008 15:06:47 -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; Tue, 04 Mar 2008 23:06:20 +0000 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 3F8A9234C08D for ; Tue, 4 Mar 2008 15:05:41 -0800 (PST) Message-ID: <474856471.1204671941259.JavaMail.jira@brutus> Date: Tue, 4 Mar 2008 15:05:41 -0800 (PST) From: "Andrew Cornwall (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (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:comment-tabpanel&focusedCommentId=12575182#action_12575182 ] Andrew Cornwall commented on HARMONY-5573: ------------------------------------------ Drat, this change fails JUnit tests. Please DO NOT apply it. > [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 > Environment: All Pack200 > Reporter: Andrew Cornwall > Attachments: main.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.