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

jdk/jshell/CommandCompletionTest.java fails with NoSuchElementException after JDK-8271287

    XMLWordPrintable

    Details

    • Subcomponent:
    • Introduced In Build:
      b16
    • Introduced In Version:
      18
    • Resolved In Build:
      b18

      Backports

        Description

        After integration of JDK-8271287, we see an issue with jdk/jshell/CommandCompletionTest.java in some of our CI systems. The failure logs look like this:
        ...
        config ReplToolTesting.setUp(): success
        test CommandCompletionTest.testUserHome(): failure
        java.util.NoSuchElementException: No value present
        at java.base/java.util.Optional.get(Optional.java:143)
        at CommandCompletionTest.testUserHome(CommandCompletionTest.java:340)
        ...

        This occurs when user.home does not contain any files that match CLASSPATH_FILTER, e.g. in some of our CI images where user.home contains nothing but very few .* configuration files. CLASSPATH filter would require some directory or .zip or .jar files.

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                clanger Christoph Langer
                Reporter:
                clanger Christoph Langer
                Votes:
                0 Vote for this issue
                Watchers:
                4 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: