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

ostream::print_cr() truncates buffer in copy-through case

    Details

    • Type: Enhancement
    • Status: Open
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: hotspot
    • Labels:
      None

      Description

      ostream::print("%s", xxx) will not truncate for a longish xxx

      ostream::print_cr("%s", xxx) does truncate a longish xxx to the (rather small) O_BUFLEN

      This is not necessary and slightly confusing, since this could be done equally well with print() followed by cr() , which would not truncate.

        Attachments

          Activity

            People

            • Assignee:
              Unassigned
              Reporter:
              stuefe Thomas Stuefe
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated: