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

[TEST_BUG] javax/print/attribute/Services_getDocFl.java

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P4 P4
    • 9
    • 9
    • client-libs
    • 2d
    • b143

        This test (javax/print/attribute/Services_getDocFl.java) obviously would fail if one service supports PS but a next one doesn't, regardless of image flavors.

        I happen to have several printing services which support only 2 flavors each and nothing more:
        application/x-java-jvm-local-objectref; class="java.awt.print.Pageable"
        application/x-java-jvm-local-objectref; class="java.awt.print.Printable"

        Fix is:

        diff --git a/test/javax/print/attribute/Services_getDocFl.java b/test/javax/print/attribute/Services_getDocFl.java
        --- a/test/javax/print/attribute/Services_getDocFl.java
        +++ b/test/javax/print/attribute/Services_getDocFl.java
        @@ -58,6 +58,7 @@
                     pngImagesSupported = false;
                     gifImagesSupported = false;
                     jpgImagesSupported = false;
        + psSupported = false;
                     for (int j=0; j<flavors.length; j++) {
                         System.out.println(flavors[j]);

              psadhukhan Prasanta Sadhukhan
              yan Yuri Nesterenko
              Votes:
              0 Vote for this issue
              Watchers:
              5 Start watching this issue

                Created:
                Updated:
                Resolved: