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

jshell tool: truncation for expressions is not consistent

    XMLWordPrintable

    Details

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

      Description

      JShell supports two truncation limits, one for "explicit" results and one for "implicit" results. If e is an expression of type T:

      jsh> e
      // value of e, truncated to IMPLICIT limit

      jsh> T x = e
      // value of e, truncated to IMPLICIT limit

      jsh> x
      // value of e, truncated to EXPLICIT limit

      The first case should use the EXPLICIT limit, since the user asked for a result.

        Attachments

          Activity

            People

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

              Dates

              Created:
              Updated:
              Resolved: