Hi All,

Please review a fix for jdk9

Bug: https://bugs.openjdk.java.net/browse/JDK-7161283
webrev: http://cr.openjdk.java.net/~psadhukhan/7161283/webrev.00/

The bug mentioned that FileDialog is not shown when "Print" button in applet is pressed (when "Print to File" is being tested) where "ok/save" option will be shown. But in standard Apple printer dialog there is no "Print to File" option so this filedialog cannot be seen. Rather there is a "PDF" option which allows to save the file, so the instructions should be changed in the test for Mac.

However, while investigating this problem, I found that there is a NPE when no printer is added to the system so PrinterJob.getPrintService() returns null but copyAttributes() uses this printService object to check supported category attributes without checking if the object is null or not. Added the relevant check in PrintJob.

Regards
Prasanta

Reply via email to