8012381: [macosx]Unable to print out the defined page for 2D_PrintingTiger/JTablePrintPageRangesTest
authorjgodinez
Wed, 29 May 2013 09:46:00 -0700
changeset 17676 d76d0c992e34
parent 17675 b727bb0815d7
child 17677 94c0b51089af
child 17887 30b9116a7ae1
8012381: [macosx]Unable to print out the defined page for 2D_PrintingTiger/JTablePrintPageRangesTest Reviewed-by: jchen, prr
jdk/src/solaris/classes/sun/print/IPPPrintService.java
jdk/test/java/awt/print/PrinterJob/Collate2DPrintingTest.java
--- a/jdk/src/solaris/classes/sun/print/IPPPrintService.java	Wed May 29 09:18:55 2013 -0700
+++ b/jdk/src/solaris/classes/sun/print/IPPPrintService.java	Wed May 29 09:46:00 2013 -0700
@@ -1023,6 +1023,13 @@
 
             // this is already supported in UnixPrintJob
             catList.add(Destination.class);
+
+            // It is unfortunate that CUPS doesn't provide a way to query
+            // if printer supports collation but since most printers
+            // now supports collation and that most OS has a way
+            // of setting it, it is a safe assumption to just always
+            // include SheetCollate as supported attribute.
+            catList.add(SheetCollate.class);
         }
 
         // With the assumption that  Chromaticity is equivalent to
--- a/jdk/test/java/awt/print/PrinterJob/Collate2DPrintingTest.java	Wed May 29 09:18:55 2013 -0700
+++ b/jdk/test/java/awt/print/PrinterJob/Collate2DPrintingTest.java	Wed May 29 09:46:00 2013 -0700
@@ -23,7 +23,7 @@
 
 /**
  * @test
- * @bug 6362683
+ * @bug 6362683 8012381
  * @summary Collation should work.
  * @run main/manual Collate2DPrintingTest
  */