In jshell, the output of "0".repeat(49999)+"2" ends with a '0'

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: P4
    • 21
    • Affects Version/s: 17, 19, 20
    • Component/s: tools
    • None
    • b05

      "0".repeat(49999)+"2" correctly evaluates to a string with a terminating '2'.
      However, jshell outputs it with a terminating '0'.

            Assignee:
            Adam Sotona
            Reporter:
            Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: