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

Crash when completing "java.io.File.path"

    XMLWordPrintable

    Details

    • Subcomponent:
    • Resolved In Build:
      b21

      Backports

        Description

        In jshell, type:
        java.io.File.path
        and press tab. This crashes with:
        ---
        jshell> java.io.File.path
        pathSeparator pathSeparatorChar

        java.io.File.pathSeparator
        Exception in thread "main" java.lang.UnsupportedOperationException: Should not get here.
                at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext$ExpressionSignaturesTask.description(ConsoleIOContext.java:720)
                at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext.complete(ConsoleIOContext.java:406)
                at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext$1.doComplete(ConsoleIOContext.java:142)
                at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.expandOrComplete(LineReaderImpl.java:3875)
                at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:585)
                at jdk.internal.le/jdk.internal.org.jline.reader.impl.LineReaderImpl.readLine(LineReaderImpl.java:404)
                at jdk.jshell/jdk.internal.jshell.tool.ConsoleIOContext.readLine(ConsoleIOContext.java:201)
                at jdk.jshell/jdk.internal.jshell.tool.JShellTool.getInput(JShellTool.java:1238)
                at jdk.jshell/jdk.internal.jshell.tool.JShellTool.run(JShellTool.java:1174)
                at jdk.jshell/jdk.internal.jshell.tool.JShellTool.start(JShellTool.java:975)
                at jdk.jshell/jdk.internal.jshell.tool.JShellToolBuilder.start(JShellToolBuilder.java:254)
                at jdk.jshell/jdk.internal.jshell.tool.JShellToolProvider.main(JShellToolProvider.java:120)
        ---

        Originally reported here:
        https://mail.openjdk.java.net/pipermail/kulla-dev/2019-March/002385.html

          Attachments

            Issue Links

              Activity

                People

                Assignee:
                jlahoda Jan Lahoda
                Reporter:
                jlahoda Jan Lahoda
                Votes:
                0 Vote for this issue
                Watchers:
                3 Start watching this issue

                  Dates

                  Created:
                  Updated:
                  Resolved: