Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8080678 jjs should use jline
  3. JDK-8133777

Use file based persistence for history instead of preferences

    XMLWordPrintable

    Details

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

      Backports

        Description

        jjs supports Ctrl-C termination as well as shutdown functions like "quit" and "exit". In addition, user can also call java.lang.System.exit directory. Because of this, we can't enforce orderly shutdown to save command history before process termination. Using shutdown hook with preferences API has issues - perhaps because preferences API itself uses shutdown hooks to flush the changes! Besides simple file based command line history => user can open with other editors and offline edit the history as well.

          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: