[OpenJDK 2D-Dev] [9] RFR JDK-6575247: Banner checkbox in PrinterJob print dialog doesn't work

Philip Race philip.race at oracle.com
Wed Jul 20 15:26:42 UTC 2016

In my evaluation of that bug (which was 9 yrs ago so I do not have
any memory of it :-)), I note that we first need to check
that job-sheets is supported .. you are not doing that ..
what happens if we pass an unsupported option ?
"-o foobar" ?? This needs testing on Linux, OS X, and Solaris 11.

Also -J (job-title) is something you can see in the queue when
you do lpq. I don't know why it is tied to banner here but
removing it seems wrong. Perhaps this should be renamed from
"banner" and "BANNER" to jobTitle ?? Please examine this.

In fact you seem to be conflicting with the -o nobanner.

So in general we have some lack of clarity around job title and banner page
(aka job sheet).

Also we have PSPrinterJob and UnixPrinterJob with similar code.
Please examine it to make sure no similar case is going missed.


On 7/18/16, 4:27 AM, Prasanta Sadhukhan wrote:
> Hi All,
> Please review a fix for an issue where it is seen that Banner page in 
> linux does not get printed despite user selecting the Banner page 
> checkbox in Printer dialog.
> Bug: https://bugs.openjdk.java.net/browse/JDK-6575247
> webrev: http://cr.openjdk.java.net/~psadhukhan/6575247/webrev.00/
> It seems if we pass "-J <bannername>" option to lpr command, it has no 
> effect.
> To print Banner page, we need to pass
> "-o job-sheets=<either of "classified", "confidential", "secret", 
> "standard", "topsecret", or "unclassified">"
> Since we support only standard banner or none via a checkbox,
> the proposed fix passes option "-o job-sheets=standard" to lpr command 
> to print the banner page.
> Regards
> PRasanta

More information about the 2d-dev mailing list