Return-Path: Delivered-To: apmail-harmony-commits-archive@www.apache.org Received: (qmail 21642 invoked from network); 12 Dec 2006 15:18:46 -0000 Received: from hermes.apache.org (HELO mail.apache.org) (140.211.11.2) by minotaur.apache.org with SMTP; 12 Dec 2006 15:18:46 -0000 Received: (qmail 20034 invoked by uid 500); 12 Dec 2006 15:18:53 -0000 Delivered-To: apmail-harmony-commits-archive@harmony.apache.org Received: (qmail 20014 invoked by uid 500); 12 Dec 2006 15:18:53 -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 20005 invoked by uid 99); 12 Dec 2006 15:18:53 -0000 Received: from herse.apache.org (HELO herse.apache.org) (140.211.11.133) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 12 Dec 2006 07:18:53 -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, 12 Dec 2006 07:18:44 -0800 Received: from brutus (localhost [127.0.0.1]) by brutus.apache.org (Postfix) with ESMTP id 9C73771413D for ; Tue, 12 Dec 2006 07:18:24 -0800 (PST) Message-ID: <28778990.1165936704638.JavaMail.jira@brutus> Date: Tue, 12 Dec 2006 07:18:24 -0800 (PST) From: "Vasily Zakharov (JIRA)" To: commits@harmony.apache.org Subject: [jira] Commented: (HARMONY-2614) [drlvm][jit] Line numbers in stack trace are incorrect In-Reply-To: <5256674.1165853361118.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-2614?page=comments#action_12457762 ] Vasily Zakharov commented on HARMONY-2614: ------------------------------------------ What do you mean, Mikhail? Sure, the line numbers for RI and Interpreter are the same, but the line numbers for JIT are different, and that is the problem. > [drlvm][jit] Line numbers in stack trace are incorrect > ------------------------------------------------------ > > Key: HARMONY-2614 > URL: http://issues.apache.org/jira/browse/HARMONY-2614 > Project: Harmony > Issue Type: Bug > Components: DRLVM > Reporter: Vasily Zakharov > Priority: Minor > Attachments: LineNumberTest.java > > > When JIT is enabled and exception is thrown in some method, the line number for the exception in incorrect: in some cases, it points not to the line where > exception has occured, but to the first line of that method. > The code to reproduce is attached, here's the output. Note the line numbers for RI and DRLVM interpreter (11, 23, 35) and DRLVM JIT (11, 19, 31). > RI: > C:\> java LineNumberTest > Exception in thread "main" java.lang.RuntimeException > at LineNumberTest.check2(LineNumberTest.java:11) > at LineNumberTest.check1(LineNumberTest.java:23) > at LineNumberTest.main(LineNumberTest.java:35) > DRLVM: > C:\> java -Xint LineNumberTest > Uncaught exception in main: > java.lang.RuntimeException > at LineNumberTest.check2(LineNumberTest.java:11) > at LineNumberTest.check1(LineNumberTest.java:23) > at LineNumberTest.main(LineNumberTest.java:35) > C:\> java LineNumberTest > Uncaught exception in main: > java.lang.RuntimeException > at LineNumberTest.check2(LineNumberTest.java:11) > at LineNumberTest.check1(LineNumberTest.java:19) > at LineNumberTest.main(LineNumberTest.java:31) -- 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