harmony-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Pavel Afremov (JIRA)" <j...@apache.org>
Subject [jira] Created: (HARMONY-2382) [DRLVM][exceptions] Fix reported stack for exceptions in object constructor.
Date Thu, 30 Nov 2006 14:18:22 GMT
[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

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


View raw message