On Mon, 4 Jan 2021 08:45:21 GMT, Prasanta Sadhukhan <psadhuk...@openjdk.org> 
wrote:

> IIUC, In windows there can be non-real printers like "Send To OneNote", "Fax" 
> which falls in Printers/Scanner list but not exactly printer so 
> PrinterException is not thrown.

I am not sure that the fax is related here, but the "printjob.print()" should 
throw such an exception if printjob.getPrintService() is null (so we do not 
have any useful printers). Do you have a chance to reproduce this bug?

BTW the suggestion in the JBS was to fail the test if no printers are found.

-------------

PR: https://git.openjdk.java.net/jdk/pull/1927

Reply via email to