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

jjs history object should have methods to save/load history to/from given file and also allow reexecution of commands by a call

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P3
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:
      None
    • Subcomponent:
    • Resolved In Build:
      b80
    • CPU:
      generic
    • OS:
      generic

      Backports

        Description

        jshell supports feature to save history to a file and also supports /+n and /-n commands to re-execute historical commands.

        We could add history.save, history.load methods and make history as a function so that history(-n) or history(n) will be re-execution of historical command.

          Attachments

            Issue Links

              Activity

                People

                • Assignee:
                  sundar Sundararajan Athijegannathan
                  Reporter:
                  sundar Sundararajan Athijegannathan
                • Votes:
                  0 Vote for this issue
                  Watchers:
                  2 Start watching this issue

                  Dates

                  • Created:
                    Updated:
                    Resolved: