StringUTF16 should check for the maximum length

XMLWordPrintable

    • Type: Sub-task
    • Resolution: Fixed
    • Priority: P4
    • 9
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      ...and throw OutOfMemoryError? This can also be used to collapse the getChar/putChar back to integer computation.

      Something like:
       http://cr.openjdk.java.net/~shade/8139070/webrev.00/

            Assignee:
            Xueming Shen
            Reporter:
            Aleksey Shipilev
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: