6604109: javax.print.PrintServiceLookup.lookupPrintServices fails SOMETIMES for Cups
authorjgodinez
Mon, 24 Oct 2011 09:58:47 -0700
changeset 10779 5037da29fa26
parent 10778 679a05f08d57
child 10780 7b575127811c
child 10864 17307b96ae38
6604109: javax.print.PrintServiceLookup.lookupPrintServices fails SOMETIMES for Cups Reviewed-by: bae, prr
jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java
--- a/jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java	Mon Oct 17 15:20:51 2011 +0400
+++ b/jdk/src/solaris/classes/sun/print/UnixPrintServiceLookup.java	Mon Oct 24 09:58:47 2011 -0700
@@ -189,7 +189,7 @@
         if (printServices == null) {
             return new PrintService[0];
         } else {
-            return printServices;
+            return (PrintService[])printServices.clone();
         }
     }