Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 11373 invoked from network); 4 Dec 2006 17:30:44 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 4 Dec 2006 17:30:44 -0000 Received: (qmail 53946 invoked by uid 500); 4 Dec 2006 17:30:52 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 53889 invoked by uid 500); 4 Dec 2006 17:30:52 -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 53866 invoked by uid 99); 4 Dec 2006 17:30:51 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 04 Dec 2006 09:30:51 -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; Mon, 04 Dec 2006 09:30:42 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 7E7C27142D7 for ; Mon, 4 Dec 2006 09:30:22 -0800 (PST) Message-ID: <1860776.1165253422515.JavaMail.jira@brutus> Date: Mon, 4 Dec 2006 09:30:22 -0800 (PST) From: "Pavel Afremov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Updated: (HARMONY-2382) [DRLVM][exceptions] Fix reported stack for exceptions in object constructor. In-Reply-To: <16957097.1164896302542.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 [ http://issues.apache.org/jira/browse/HARMONY-2382?page=all ] Pavel Afremov updated HARMONY-2382: ----------------------------------- Patch Info: [Patch Available] > [DRLVM][exceptions] Fix reported stack for exceptions in object constructor. > ---------------------------------------------------------------------------- > > Key: HARMONY-2382 > URL: http://issues.apache.org/jira/browse/HARMONY-2382 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Pavel Afremov > Attachments: Fix-reported-stack-for-exceptions-in-object-constructor.txt > > > The following java code throws exception with incorrect stack. > Generated stack trace doesn't contains constructor in which exception is thrown. > class ExceptionStackTest { > private static final int MAX_DEPTH = 1000; > // Constructor calls itself and throw runtime exception on max depth > ExceptionStackTest(int c) { > if (c > 0) { > new ExceptionStackTest(c - 1); > } else { > throw new RuntimeException("Test"); > } > } > // run test and check that it throws exception with right stack depth > public static void main(String[] args) { > new ExceptionStackTest(MAX_DEPTH); > } > } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://issues.apache.org/jira/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira