Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8366264

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Unresolved
    • Icon: P4 P4
    • 26
    • 26
    • tools

      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.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated: