[OpenJDK 2D-Dev] [9] RFR JDK-7161283: [macosx]filedialog didn't pop up for awt test InvalidParametersNativeTest
Rajeev Chamyal
rajeev.chamyal at oracle.com
Fri Nov 6 08:53:17 UTC 2015
The fix looks good to me.
Regards,
Rajeev Chamyal
Subject:
Re: [9] RFR JDK-7161283: [macosx]filedialog didn't pop up for awt test InvalidParametersNativeTest
Date:
Thu, 5 Nov 2015 12:59:32 +0300
From:
Sergey Bylokhov HYPERLINK "mailto:Sergey.Bylokhov at oracle.com"<Sergey.Bylokhov at oracle.com>
To:
prasanta sadhukhan HYPERLINK "mailto:prasanta.sadhukhan at oracle.com"<prasanta.sadhukhan at oracle.com>, HYPERLINK "mailto:2d-dev at openjdk.java.net"2d-dev at openjdk.java.net HYPERLINK "mailto:2d-dev at openjdk.java.net"<2d-dev at openjdk.java.net>, Alexander HYPERLINK "mailto:alexandr.scherbatiy at oracle.com"<alexandr.scherbatiy at oracle.com>
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.
>
> Regards
> Prasanta
--
Best regards, Sergey.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20151106/f2c930a5/attachment.html>
More information about the 2d-dev
mailing list