Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 2761 invoked from network); 31 Jan 2007 05:21:30 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 31 Jan 2007 05:21:30 -0000 Received: (qmail 92502 invoked by uid 500); 31 Jan 2007 05:21:33 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 92432 invoked by uid 500); 31 Jan 2007 05:21:33 -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 92411 invoked by uid 99); 31 Jan 2007 05:21:33 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jan 2007 21:21:33 -0800 X-ASF-Spam-Status: No, hits=0.0 required=10.0 tests= X-Spam-Check-By: apache.org Received: from [140.211.11.4] (HELO brutus.apache.org) (140.211.11.4) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 30 Jan 2007 21:21:26 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 1B6BD7142D0 for ; Tue, 30 Jan 2007 21:21:06 -0800 (PST) Message-ID: <12332678.1170220866108.JavaMail.jira@brutus> Date: Tue, 30 Jan 2007 21:21:06 -0800 (PST) From: "Vera Petrashkova (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2808) [drlvm] VM crashes instead of throwing VerifyError when used class overrides final method In-Reply-To: <16233325.1166597183422.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-2808?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel#action_12468875 ] Vera Petrashkova commented on HARMONY-2808: ------------------------------------------- VM throws VerifyError corectly. > [drlvm] VM crashes instead of throwing VerifyError when used class overrides final method > ----------------------------------------------------------------------------------------- > > Key: HARMONY-2808 > URL: https://issues.apache.org/jira/browse/HARMONY-2808 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Environment: Windows and Linux > Reporter: Vera Petrashkova > Assigned To: Gregory Shimansky > Attachments: classloader_override_final_method_fix.patch, finTest.zip > > > VM crashes when it tries to load class which contains overridden final method. > The following test which uses attached synthetic classes demonstrates this issue: > ----------finTest.java---------- > public class finTest { > public static void main(String args[]) { > try { > new finTest1().test(); > System.out.println("Test failed. VerifyError was not thrown"); > } catch (VerifyError e) { > System.out.println("Test passed: "+e); > } catch (Throwable e) { > System.out.println("Test failed: unexpected "+e); > e.printStackTrace(); > } > } > } > ----------------finTest1.jj-------------- > .class public finTest1 > .super java/lang/Object > ; > ; standard initializer > .method public ()V > aload_0 > invokespecial java/lang/Object/()V > return > .end method > ; final method > .method public final testMethod()I > .limit locals 2 > .limit stack 2 > sipush 1 > ireturn > .end method > ; > .method public test()V > .limit stack 2 > .limit locals 2 > new finTest2 > dup > invokespecial finTest2/()V > aload 0 > invokevirtual finTest2/testMethod()V > return > .end method > --------------finTest2.jj------------------ > .class public finTest2 > .super finTest1 > ; > ; standard initializer > .method public ()V > aload_0 > invokespecial finTest1/()V > return > .end method > ; > .method public final testMethod()I > .limit locals 2 > .limit stack 2 > sipush 2 > ireturn > .end method > ----------------- -- This message is automatically generated by JIRA. - You can reply to this email to add a comment to the issue online.