RFR: 4884570: StreamPrintService.isAttributeValueSupported does not work properly for SheetCollate

Sergey Bylokhov serb at openjdk.java.net
Wed Jan 5 03:47:15 UTC 2022


On Wed, 5 Jan 2022 02:05:29 GMT, Phil Race <prr at openjdk.org> wrote:

> This fixes a longstanding consistency issue where the Postscript StreamPrintService would report SheetCollate.UNCOLLATED in a list of supported values then report it was not supported under the same conditions.

test/jdk/javax/print/attribute/StreamServiceSheetCollateTest.java line 52:

> 50:         OutputStream out = new ByteArrayOutputStream();
> 51:         StreamPrintService sps = fact[0].getPrintService(out);
> 52:         if (!sps.isAttributeCategorySupported(SheetCollate.class)) {

Can we add other attributes to the tests? I made a quick check for some attributes and it looks like the code is quite confused, on my windows, the same issue exists for the "OrientationRequested.class".

-------------

PR: https://git.openjdk.java.net/jdk/pull/6963



More information about the client-libs-dev mailing list