Please review a fix for a tck failure in jdk9 whereby "banner page"
(cover page) is printed by default when print() is called directly
without any print dialog being shown.
Issue was in RasterPrinterJob, "noJobSheet" variable was set to false
which when passed to PSPrinterJob#printExecCmd(), it results in adding
"-o job-sheets=standard" to lpr command and
therefore, Banner page was getting printed by default.
Proposed fix is to check for defaultAttributeValue for JobSheets
attribute so that we can find what is the default value reported by
underlying platform and set "noJobSheet" value to default jobsheet
(like CUPS report job-sheet=none so that no banner page is to be printed
by default even though it supports jobsheet)
I tested "6575247:Banner checkbox in PrinterJob print dialog doesn't
work" testcase in windows, solaris, linux and it works as expected.
JCK test api/javax_swing/interactive/PrintTest.html#PrintTest via command
-platform.hasPrinter true -TestCaseID ALL"
also works ie no banner page is printed by default.