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

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

XMLWordPrintable

    • b16
    • 18
    • b18

        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.

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

                Created:
                Updated:
                Resolved: