[OpenJDK 2D-Dev] [9] RFR: JDK-6921664, , The amount of copies and the printer job name is not passed to the implementing

Philip Race philip.race at oracle.com
Wed Apr 13 15:35:14 UTC 2016

I have updated the synopsis, please use this in the commit :-
"The number of copies and the job name are not passed to a 3rd party 

Fix looks fine.


On 4/4/16, 4:21 AM, prasanta sadhukhan wrote:
> Hi All,
> Please review a fix for jdk9
> Bug: https://bugs.openjdk.java.net/browse/JDK-6921664
> webrev: http://cr.openjdk.java.net/~psadhukhan/6921664/webrev.00/
> The issue was
> for a third party non-builtin print service, if the application sets 
> the copies, jobname attribute these attributes are not passed to the 
> third party print() implementation.
> This is because when we find there is a non-builtin print service, we 
> call spoolService() in RasterPrinterJob
> which , even though it creates an attribute set via attributes = new 
> HashPrintRequestAttributeSet();
> but it does not populate the attributes with the attributes set by the 
> application, so when we call job.print(doc, attributes); we were 
> passing attributes without any attribute set.
> I added the minimal copies and jobName attributes to the attribute 
> list before calling the 3rdparty print implementation.
> Regards
> Prasanta
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.openjdk.java.net/pipermail/2d-dev/attachments/20160413/749bf1ec/attachment.html>

More information about the 2d-dev mailing list