JShell tool: tool does not report errors if -startup and -nostartup flags are specified

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P5
    • 9
    • Affects Version/s: 9
    • Component/s: tools
    • b121
    • Verified

      Tool does not report errors if -startup and -nostartup flags are specified if the file specified by -startup contains nothing.

      See: StartOptionTest#testStartup.

      Root cause: I think the second check should be removed.
         if (cmdlineStartup != null && !cmdlineStartup.isEmpty()) {

            Assignee:
            Robert Field (Inactive)
            Reporter:
            Andrei Eremeev
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: