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

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

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P4 P4
    • 23
    • None
    • hotspot
    • b26

      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.

            dholmes David Holmes
            stuefe Thomas Stuefe
            Votes:
            0 Vote for this issue
            Watchers:
            5 Start watching this issue

              Created:
              Updated:
              Resolved: