On Mon, 4 Jan 2021 09:23:50 GMT, Sergey Bylokhov <s...@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. > >> 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. Not sure that one more manual test is needed, the run of the test marked by the printer keyword already required to have a configured printer. Otherwise, why do we need that keyword at all? ------------- PR: https://git.openjdk.java.net/jdk/pull/1927