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

jshell tool: detect paste so that multi-line constructs aren't processed until the end of the paste

    Details

    • Subcomponent:
    • Introduced In Version:
      9

      Description

      Use JLine functionality to detect pastes, then process them as one block.

      E.g.:


      "Hello".toUpperCase()
             .length();

      jshell will process the first line as a snippet (as semi-colons are optional) so we were mulling over whether there would be any way to make it easy to paste in multi-line code examples like this.

      (Thanks Matthew and Alan))

        Attachments

          Activity

            People

            • Assignee:
              jlahoda Jan Lahoda
              Reporter:
              rfield Robert Field
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated: