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

jshell tool: value printing truncation

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: tools
    • Subcomponent:
    • Resolved In Build:
      b120
    • Verification:
      Verified

      Description

      Printed result values can be distractingly big (multiple lines) or, worst go on indefinitely. Some truncation of values is needed.

      The truncation used for an explicit request for value (giving a variable name) should be different from that for a report on an activity (e.g., assigning a value).

      It is appropriate that these truncation values be set in the same way as other output configuration. So:

          /set truncation <mode> <length> <selector>...

      where <selector> is as in /set format.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              rfield Robert Field
              Reporter:
              rfield Robert Field
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: