tools/javac/launcher/SourceLauncherStackTraceTest.java does not cover the scenario for 8362237

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 26
    • Affects Version/s: 26
    • Component/s: tools
    • b14

      The scenario that caused JDK-8362237 was when the cause exception has no stack trace while the main exception does. The SourceLauncherStackTraceTest removed all stack traces with `-XX:-StackTraceInThrowable`, which is not quite the desired scenario.

      Since Java 7 exceptions can be constructed with no stack traces, so we can use platform APIs to accomplish that in SourceLauncherTest itself. Meanwhile SourceLauncherStackTraceTest might still be meaningful to ensure the source launcher works with the no stack trace VM flag.

            Assignee:
            Chen Liang
            Reporter:
            Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: