[OpenJDK 2D-Dev] RFR: 8215537: [TEST_BUG] java/awt/print/PrinterJob/LandscapeStackOverflow.java fails by timeout
Prasanta Sadhukhan
psadhukhan at openjdk.java.net
Tue Jan 12 11:52:03 UTC 2021
On Tue, 12 Jan 2021 10:44:12 GMT, Sergey Bylokhov <serb at 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.
>
> 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?
That printer keyword seems to be just a hint/suggestion as it does not force user to do anything, so we can still get this kind of problem. Making it manual at least will let user choose which printer he actually wants to work with.
-------------
PR: https://git.openjdk.java.net/jdk/pull/1927
More information about the 2d-dev
mailing list