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

getSupportedAttributeValues returns null for OrientationRequested attribute

XMLWordPrintable

    • 2d
    • beta2
    • generic
    • generic
    • Verified


      Attached is a sample testcase(Test.java) which tries to get the
      supported attribute values for OrientationRequested attribute with
      DocFlavor.INPUT_STREAM.JPEG. It returns null in this case.

      I have another testcase(OrientationTest.java) where I try to print JPEG image
      with all the OrientationRequested values(LANDSCAPE, PORTRAIT, REVERSE_LANDSCAPE,
      REVERSE_PORTRAIT) using the same docflavor but without checking the
      getSupportedAttributeValues.It prints JPEG image for all the above 4
      orientations. This leads to a suspicion if it was a bug of
      getSupportedAttributeValues for not returning the supported orientations.

      The program was tested on Solaris Sparc 7 and Windows 2000 with build 67
      and both have the same problem.

      Source Files: Test.java, OrientationTest.java
      Resource Files: house.jpg

            jgodinez Jennifer Godinez (Inactive)
            kbalasubsunw Kannan Balasubramanian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: