-
Bug
-
Resolution: Duplicate
-
P4
-
None
-
5.0
-
x86
-
linux_sun
I am using a INPUT_STREAM.JPEG flavor alongwith Orientation and Destination attributes on CUPS. I am adding the destination, orientation attributes to the attribute set and passing it to the ServiceUI.printDialog() method. On CUPS, destination is not supported for the above doc falvor. So I expect Destination to remain disabled on the print dialog. But when I run it, the Orientation attribute values are getting disabled in the print dialog and not the 'PrintToFile' checkbox. Orientation is in fact supported by the print service for the above doc flavor. It occurs only when I pass the attributes upfront. It does not happen when I choose 'PrintToFile' in the print dialog after it is shown.
This is reproducible from Tiger-b46 to current mustang build on Solaris and Linux, with CUPS. Not reproducible on Non-CUPS and win32. Not reproducible on Tiger-beta-b32d. So I think this is introduced somewhere in between Tiger-b32d and b46.
I have attached a sample test. Execute it as follows.
java MerlinPrintDialogTest [dest]
passing 'dest' string will add 'destination' attribute to the attribute set. If nothing is passed, destination attrib will not be added. So pass 'dest' and run the test. A print dialog would come up. Check the values of Orientation. If it remains disabled the bug is reproduced.
This is reproducible from Tiger-b46 to current mustang build on Solaris and Linux, with CUPS. Not reproducible on Non-CUPS and win32. Not reproducible on Tiger-beta-b32d. So I think this is introduced somewhere in between Tiger-b32d and b46.
I have attached a sample test. Execute it as follows.
java MerlinPrintDialogTest [dest]
passing 'dest' string will add 'destination' attribute to the attribute set. If nothing is passed, destination attrib will not be added. So pass 'dest' and run the test. A print dialog would come up. Check the values of Orientation. If it remains disabled the bug is reproduced.
- duplicates
-
JDK-5049012 PrintToFile option is not disabled for flavors that do not support destination
-
- Resolved
-