jdk/src/solaris/classes/sun/print/IPPPrintService.java
changeset 21224 58a31574ac84
parent 19013 7854d8c8ec5a
child 21780 aa006e1a6eb9
--- a/jdk/src/solaris/classes/sun/print/IPPPrintService.java	Mon Oct 14 16:00:03 2013 +0400
+++ b/jdk/src/solaris/classes/sun/print/IPPPrintService.java	Mon Oct 14 09:15:21 2013 -0700
@@ -366,6 +366,7 @@
                                           " IPPPrintService, myURL="+
                                           myURL+" Exception= "+
                                           e);
+            throw new IllegalArgumentException("invalid url");
         }
 
         isCupsPrinter = isCups;
@@ -1145,6 +1146,8 @@
                 // REMIND: check attribute values
                 return (T)PDLOverrideSupported.NOT_ATTEMPTED;
             }
+        } else if (category == PrinterURI.class) {
+            return (T)(new PrinterURI(myURI));
         } else {
             return null;
         }