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

JShell tool: '/save all' does not save startup snippets

XMLWordPrintable

      '/save all' does not save startup snippets

      To reproduce:

      -> int a
      | Added variable a of type int

      -> class A {}
      | Added class A

      -> /save all src.repl

      -> /list all

        s1 : import java.util.*;
        s2 : import java.io.*;
        s3 : import java.math.*;
        s4 : import java.net.*;
        s5 : import java.util.concurrent.*;
        s6 : import java.util.prefs.*;
        s7 : import java.util.regex.*;
        s8 : void printf(String format, Object... args) { System.out.printf(format, args); }
         1 : int a;
         2 : class A {}


      cat src.repl
      int a;
      class A {}

            rfield Robert Field (Inactive)
            aeremeev Andrei Eremeev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: