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

Explicitly document some assumptions of StringUTF16

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P5 P5
    • 26
    • None
    • core-libs
    • master

      Some assumptions for StringUTF16 are not explicitly documented. For example, c2 expects byte and char arrays to have the same base offset and compatible index scales; indices in StringUTF16 are always in unit of chars.

      The lack of documentation confused contributors and reviewers. Therefore, we should probably add them one way or the other, in the form of comments and/or asserts.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: