- 
    Bug 
- 
    Resolution: Fixed
- 
     P4 P4
- 
    9
- 
        b143
| Issue | Fix Version | Assignee | Priority | Status | Resolution | Resolved In Build | 
|---|---|---|---|---|---|---|
| JDK-8295318 | 8u361 | Anto J | P4 | Resolved | Fixed | b03 | 
                    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]);
            
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]);
- backported by
- 
                    JDK-8295318 [TEST_BUG] javax/print/attribute/Services_getDocFl.java -           
- Resolved
 
-