This all looks fine although this can be a simple call to
attributes.get(CustomMediaTray.class) can't it ?

502         for (int i=0; i< attrs.length; i++) {
 503             Attribute attr = attrs[i];
 504             try {
 505                 if (attr instanceof CustomMediaTray) {
506 CustomMediaTray customTray = (CustomMediaTray)attr; 507 mOptions = " InputSlot="+ customTray.getChoiceName();
 508                 }
 509             } catch (ClassCastException e) {

-phil.

On 8/10/16, 1:59 AM, Prasanta Sadhukhan wrote:
Hi All,

Please review a fix for an issue where it is seen that the selected printer tray is ignored in linux and default standard tray is used for printing.

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

Issue was lpr command needs "-o InputSlot=<trayname>" to select the printertray which was not being passed to lpr command. Proposed fix added InputSlot option to lpr command to select the printertray.

Tested in ubuntu and solaris11.

Regards
Prasanta

Reply via email to