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

jshell tool: truncation for expressions is not consistent

XMLWordPrintable

    • b121
    • Verified

      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.

            rfield Robert Field (Inactive)
            briangoetz Brian Goetz
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: