United StatesChange Country, Oracle Worldwide Web Sites Communities I am a... I want to...
Bug ID: JDK-6567260 Set SheetCollate attribute to COLLATED and UNCOLLATED not working in 6u2
JDK-6567260 : Set SheetCollate attribute to COLLATED and UNCOLLATED not working in 6u2

Details
Type:
Bug
Submit Date:
2007-06-07
Status:
Closed
Updated Date:
2012-03-22
Project Name:
JDK
Resolved Date:
2007-06-14
Component:
client-libs
OS:
solaris,solaris_10
Sub-Component:
2d
CPU:
sparc
Priority:
P2
Resolution:
Fixed
Affected Versions:
6u2
Fixed Versions:
6u4 (b05)

Related Reports
Duplicate:

Sub Tasks

Description
Java Version: 1.6.0_02-b01, b02, b03, b04
Platform: solaris-sparc 10, host name: d2-sunburst.sfbay

Problems: 
A test which sets the SheetCollate Attribute to COLLATED and UNCOLLATED and checks whether it is reflected in the printout is failing in 1.6.0_02-b01 and builds afterward, it is PASS in b00 and 1.6.0_01-b06 and 1.6.0, the COLLATED and UNCOLLATED both are not working, meaning the printout only has one copy, it should have two copies which print page 1, 2,3 and page 1,2,3 or page 1,1 and 2,2 and 3,3.
But in 6u2-b01, it only print one copy.

The test case is as attached.

Hot to reproduce the problem:
1. set JAVA_HOME to 6u2-b04
2. cd /net/cady.sfbay/export4/Mustang_RC_ws/2d/src/2D_PrintingMerlin
3. ../../../share/bin/gnumake/solaris-sparc/gnumake runmanual
4. The second test frame will come up, click COLLATED and click print button, you will see the printout which only one copy and you click UNCOLLATED and print button, same result as COLLATED.

                                    

Comments
EVALUATION

This is presumably related to the fix for
6506286 : Printing under Linux doesn't work

which limited the inclusion of DeferredMediaSelection to printers
that were reported as postscript printers by IPP/CUPS.

That's still going to be used on S10, but Collate2DPrintingTest.java
run with 6u1 and 6u2 shows a small difference in the output :

% diff 6u1.ps 6u2.ps
72c72
< << /DeferredMediaSelection true /PageSize [612.0 792.0] /ImagingBBox null /ManualFeed false /Collate true /NumCopies 2 >> setpagedevice
---
>  /ImagingBBox null /ManualFeed false /Collate true /NumCopies 2<< /PageSize [612.0 792.0] /DeferredMediaSelection true >> setpagedevice

Notably collate is moved outside the << .. >> bracketing so its not
in the dictionary processed by that command.
                                     
2007-06-07



Hardware and Software, Engineered to Work Together