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

ObjectIn/OutputStream improvements

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Labels:

      Description

      This bug covers some general improvements to ObjectIn/OutStream.

      More specifically:
       - Reuse the existing StringBuilder instance, where possible.
       - Skip primitive/object reading/writing if no primitives/objects in the stream/class.
       - For clarify and readability, SerialCallbackContext.checkAndSetUsed()
         should be invoked directly. It makes it very clear what the intent is.
       - General cleanup.

      see mail discussion on:
        http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-January/024778.html
        http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-February/024817.html
        http://mail.openjdk.java.net/pipermail/core-libs-dev/2014-February/024860.html

        Attachments

          Activity

            People

            Assignee:
            chegar Chris Hegarty
            Reporter:
            chegar Chris Hegarty
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: