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

    • Sub-task
    • Resolution: Fixed
    • P3
    • 9
    • 9
    • core-libs
    • b79
    • generic
    • 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

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

                Dates

                  Created:
                  Updated:
                  Resolved: