Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4416823

PageRanges incorrectly reported as supported on Solaris with text docs

    Details

    • Subcomponent:
      2d
    • Resolved In Build:
      beta
    • CPU:
      sparc
    • OS:
      solaris_1
    • Verification:
      Verified

      Description


      The sample code attached prints a text file 'sample.txt' which needs approximately 3 pages to print its data. A 'PageRanges' attribute is added to the HashPrintRequestAttribute to print only the second page. Both the isAttributeCategorySupported() and isAttributeValueSupported() method of PrintService are called to verify, before the attribute is passed on to the DocPrintJob.
      The testcase when run still prints out all the 3 pages, when only one was expected.

      Source File: PageRangesTest.java
      Resource File: sample.txt

        Attachments

          Activity

            People

            • Assignee:
              prr Philip Race
              Reporter:
              kbalasubsunw Kannan Balasubramanian (Inactive)
            • Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved:
                Imported:
                Indexed: