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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P5 P5
    • 9
    • 9
    • 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()) {

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

              Created:
              Updated:
              Resolved: