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

jshell tool: recall for jshell editing

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • 9
    • 9
    • tools

      A past declaration can be recalled for pop-up editing by name.

      But this can't be done for command-line editing. You can use repeated up-arrows, but if your session is long this is impractical.

      int square(int x) { return x + x; }
      ...
      jshell> /get square
      int square(int x) { return x * x; }

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            1 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: