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

(scanner) java/util/Scanner/ScanTest.java fails

    Details

    • Subcomponent:
    • Resolved In Build:
      b14

      Backports

        Description

        the test fails on macos due to java.util.InputMismatchException:

        ACTION: main -- Failed. Execution failed: `main' threw exception: java.util.InputMismatchException
        REASON: User specified action: run main/othervm ScanTest
        TIME: 0.359 seconds
        messages:
        command: main ScanTest
        reason: User specified action: run main/othervm ScanTest
        Mode: othervm [/othervm specified]
        elapsed time (seconds): 0.359
        configuration:
        STDOUT:
        STDERR:
        Skip patterns : Passed
        Find patterns : Passed
        Find to horizon test : Passed
        findInEmptyLine test : Passed
        Remove test : Passed
        From file : Passed
        IOException test : Passed
        Match patterns : Passed
        Delimiter test : Passed
        delim at boundary test : Passed
        Use locale test : Passed
        Close test : Passed
        Cache test : Passed
        Cache test2 : Passed
        java.util.InputMismatchException
        at java.base/java.util.Scanner.throwFor(Scanner.java:860)
        at java.base/java.util.Scanner.next(Scanner.java:1497)
        at java.base/java.util.Scanner.nextFloat(Scanner.java:2399)
        at ScanTest.nonASCIITest(ScanTest.java:285)
        at ScanTest.main(ScanTest.java:79)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
        at java.base/jdk.internal.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
        at java.base/jdk.internal.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
        at java.base/java.lang.reflect.Method.invoke(Method.java:543)
        at com.sun.javatest.regtest.agent.MainWrapper$MainThread.run(MainWrapper.java:110)
        at java.base/java.lang.Thread.run(Thread.java:844)

        JavaTest Message: Test threw exception: java.util.InputMismatchException
        JavaTest Message: shutting down test

        STATUS:Failed.`main' threw exception: java.util.InputMismatchException

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  clanger Christoph Langer
                  Reporter:
                  iignatyev Igor Ignatyev
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  7 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: