harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Mikhail Markov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2372) [drlvm][jit][jet] Stack trace points to the line where the exception was created instead of where it was thrown
Date Thu, 30 Nov 2006 10:42:21 GMT
[drlvm][jit][jet] Stack trace points to the line where the exception was created instead of
where it was thrown
---------------------------------------------------------------------------------------------------------------

                 Key: HARMONY-2372
                 URL: http://issues.apache.org/jira/browse/HARMONY-2372
             Project: Harmony
          Issue Type: Bug
          Components: DRLVM
         Environment: IA32, WinXP
            Reporter: Mikhail Markov


The following test prints the following StackTrace when running on DRLVM with 'jet' (the same
with 'opt'  except line 14 which seems to be inlined):
Uncaught exception in main:
java.lang.RuntimeException
        at Test.test(Test.java:14)
        at Test.main(Test.java:3)

On RI or DRLVM with interpreter the stack is the following:
Uncaught exception in main:
java.lang.RuntimeException
        at Test.test(Test.java:14)
        at Test.main(Test.java:6)

-------------- Test.java -------------------
public class Test {
    public static void main(final String[] args) throws Exception {
        RuntimeException re1 = null;

        try {
            test();
        } catch (RuntimeException re) {
            re1 = re;
        }
        throw re1;
    }

    public static void test() {
        throw new RuntimeException();
    }
}


-- 
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

        

Mime
View raw message