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

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

    XMLWordPrintable

Details

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

    Description

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

      Attachments

        Issue Links

          Activity

            People

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

              Dates

                Created:
                Updated:
                Resolved: