8012381: [macosx]Unable to print out the defined page for 2D_PrintingTiger/JTablePrintPageRangesTest
Reviewed-by: jchen, prr
--- 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
*/