<AWT Dev> RFR: 8262731: [macOS] Exception from "Printable.print" is swallowed during "PrinterJob.print" [v2]

Anton Litvinov alitvinov at openjdk.java.net
Mon May 31 12:25:20 UTC 2021


On Sun, 30 May 2021 18:08:01 GMT, Phil Race <prr at openjdk.org> wrote:

>> Anton Litvinov has updated the pull request incrementally with one additional commit since the last revision:
>> 
>>   Second version of the fix
>
> test/jdk/java/awt/print/PrinterJob/ExceptionFromPrintableIsIgnoredTest.java line 32:
> 
>> 30:    @run main/manual ExceptionFromPrintableIsIgnoredTest MAIN RE
>> 31:    @run main/manual ExceptionFromPrintableIsIgnoredTest EDT PE
>> 32:    @run main/manual ExceptionFromPrintableIsIgnoredTest EDT RE
> 
> wjy is this still manual ?

The test is manual, because the test initiates printing and there is a chance that on a test host a default printer will be some virtual printer which can show the native dialog asking to specify the location of PDF file in which the printed document should be saved, in this case the test will be blocked and will be killed by "jtreg" by a timeout, what is unacceptable for the automatic test which should not slow down the speed of execution of all other automatic tests. For example such a virtual printer on Windows OS can be "Microsoft Print to PDF". By the way, I already explained this reason in one of my replies to your questions in the previous iteration of the code review.

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

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


More information about the awt-dev mailing list