Document EOFException in java.io.ObjectInputStream#readUTF

XMLWordPrintable

    • Type: Bug
    • Resolution: Unresolved
    • Priority: P4
    • tbd
    • Affects Version/s: 20
    • Component/s: core-libs

      While it might be thrown, it is not documented.

      jshell> new ObjectInputStream(
         ...> new ByteArrayInputStream(
         ...> new ByteArrayOutputStream(0).toByteArray()
         ...> )
         ...> ).readUTF();
         ...>
      | Exception java.io.EOFException
      | at ObjectInputStream$PeekInputStream.readFully (ObjectInputStream.java:2915)
      | at ObjectInputStream$BlockDataInputStream.readShort (ObjectInputStream.java:3410)
      | at ObjectInputStream.readStreamHeader (ObjectInputStream.java:954)
      | at ObjectInputStream.<init> (ObjectInputStream.java:392)
      | at (#1:3)

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

              Created:
              Updated: