[OpenJDK 2D-Dev]  RFR JDK-7161283: [macosx]filedialog didn't pop up for awt test InvalidParametersNativeTest
Sergey.Bylokhov at oracle.com
Thu Nov 5 09:59:32 UTC 2015
The fix looks fine to me.
On 09.10.15 10:04, prasanta sadhukhan wrote:
> 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.
Best regards, Sergey.
More information about the 2d-dev