[OpenJDK 2D-Dev] 8187898: PrintStream should override FilterOutputStream#write(byte[]) with a method that has no throws clause

Brian Burkhalter brian.burkhalter at oracle.com
Fri Jul 12 22:12:55 UTC 2019

> I think I'd be more inclined to make the code at 970 like that at 1036.

Can’t do this exactly as drawImageBGR at 903 does not throw a PrinterException. Have to use RuntimeException.


> On Jul 12, 2019, at 1:39 PM, Phil Race <philip.race at oracle.com> wrote:
> oh well ... in which I suppose this is the best you can do here.
> -phil.
> On 7/12/19 1:10 PM, Brian Burkhalter wrote:
>>> (2) I don't know why at 1034 you changed from PrinterIOException to PrinterException.
>> There is no PrinterIOException constructor which accepts a String as its only parameter and there is no IOException to pass to a PrinterIOException constructor.

More information about the core-libs-dev mailing list