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

java.io.OptionalDataException should have public constructors

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Won't Fix
    • Icon: P4 P4
    • tbd
    • 9
    • core-libs
    • None

      java.io.OptionalDataException has only package private constructors.
      To ease its use by non-JDK serialization mechanisms it should have public constructors.

      The public fields for eof and length are another anomaly. Adding getter methods would be a useful addition and deprecating the public fields.

            rriggs Roger Riggs
            rriggs Roger Riggs
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: