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

Specification for MemorySegment::get/setString could use some clarification

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 24
    • 23, 24
    • core-libs

      As of Java 22, MemorySegment::get/setString allows a charset to be provided.

      The charset must be one of the charset in StandardCharsets.

      However, this important piece of information is only provided in the "@throws" section of the javadoc. Ideally, we should make this more visible, either in the main javadoc, or in the `@param` section.

            pminborg Per-Ake Minborg
            mcimadamore Maurizio Cimadamore
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: