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

jshell tool: remove print method forwarding to System.out from default startup

XMLWordPrintable

    • b151
    • generic
    • generic
    • Verified

      Make print methods opt-in by using "PRINTING" resource.

      So:

        jshell

      Includes standard imports but no print methods.

      Where:

        jshell --start PRINTING

      Includes a complete set of print methods, but no imports.

      And:

        jshell --start DEFAULT --start PRINTING

      Includes both.

      Resources initially are: DEFAULT, PRINTING, and JAVASE; Where the later is all Java SE imports. Resources apply to "/set start", "/open", and load files.

            rfield Robert Field (Inactive)
            rfield Robert Field (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: