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

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

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 21
    • 17, 19, 20
    • tools
    • None
    • b05

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

            asotona Adam Sotona
            rgiulietti Raffaello Giulietti
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: