-
Bug
-
Resolution: Fixed
-
P4
-
1.4.0, 5.0, 6u23, 7, 7u10, 9, 10, 11, 12, 15, 16, 17
-
b05
-
generic
-
generic
Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build |
---|---|---|---|---|---|---|
JDK-2198673 | 7 | Jennifer Godinez | P4 | Closed | Won't Fix |
As far as any print service is concerned, isAttributeValueSupported must always return true for any attribute value that is returned by getSupportedAttributeValues if the context is same (such as DocFlavor and the optional attribute set). StreamPrintService.getSupportedAttributeValues() returns SheetCollate.UNCOLLATED as the supported value for any Doc Flavor which is not SERVICE_FORMATTED. But when querying with isAttributeValueSupported() with the same attribute value and the same DocFlavor, this method returns false. When I looked into the source code, it is pretty clear that isAttributeValueSupported always returns false when the DocFlavor is not SerivceFormatted.Pageable or Printable regardless of what SheetCollate value is passed to this method. It must also consider the attribute value before actually returning true or false.
This bug is reproducible on windows as well as Solaris, right from JDK1.4.0.
I have attached a sample code which would print the supported values returned by getSupportedAttributeValues() and the boolean value returned by isAttributeValueSupported for each supported value.
This bug is reproducible on windows as well as Solaris, right from JDK1.4.0.
I have attached a sample code which would print the supported values returned by getSupportedAttributeValues() and the boolean value returned by isAttributeValueSupported for each supported value.
- backported by
-
JDK-2198673 StreamPrintService.isAttributeValueSupported does not work properly for SheetCollate
-
- Closed
-