RFR JDK-8204930 Reader:nullReader() spec does not match the behavior

Patrick Reinhart patrick at reini.net
Wed Jun 13 20:22:26 UTC 2018


Hi everybody,

While looking into the current Reader Spec and the failing methods I found that the ready() method actually does behave wrong and I fixed this.

For the case of mark() I would like to revise the specification to align with the Reader’s default behavior that states for the mark method:

IOException - If the stream does not support mark(), or if some other I/O error occurs

The new spec for those methods would then read like:

70     * <p> The {@code markSupported()} method returns {@code false}.  The
71     * {@code mark()} and {@code reset()} methods throw an {@code IOException}.


Here the link to the webrev:

http://cr.openjdk.java.net/~reinhapa/reviews/8204930/webrev


-Patrick


More information about the core-libs-dev mailing list