On 23/07/2019 01:01, Brian Burkhalter wrote:
:
This version [1] adds writeBytes() and overrides write(byte[]) without changing 
its behavior. The documentation of write(byte[]) points the user to 
writeBytes() and write(byte[],int.int).

The overridden write(byte[]) declares that it throws IOE so it's source compatible but it behaves like the other PS.write methods in that checkError is used to check for an error rather than throwing IOE. This will need a bit more wording in the method description to make this clearer. The change to the class description is confusing as it suggests that the method throws IOE - maybe that change should be dropped to avoid trying to explain the oddity in two places.

-Alan.

Reply via email to