java.io.OptionalDataException should have public constructors

XMLWordPrintable

    • Type: Bug
    • Resolution: Won't Fix
    • Priority: P4
    • tbd
    • Affects Version/s: 9
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: