Make ByteArrayOutputStream.ensureCapacity(int) public

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Unresolved
    • Priority: P5
    • tbd
    • Affects Version/s: None
    • Component/s: core-libs
    • None

      ByteArrayOutputStream.ensureCapacity(int) is currently private. It would be useful if it were public, so that users can control the timing of resizes, and so that it can be more easily extended by subclasses.

      Mailing list discussion: https://mail.openjdk.org/pipermail/core-libs-dev/2026-January/156991.html

            Assignee:
            Daniel Gredler
            Reporter:
            Daniel Gredler
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: