8032227: ClassCastException in UnixPrintJob for ipp printer

Reviewed-by: bae, jgodinez
This commit is contained in:
Phil Race 2014-02-05 09:06:54 -08:00
parent 25a556913e
commit 9e1e3f4cbd

View File

@ -409,7 +409,11 @@ public class UnixPrintJob implements CancelablePrintJob {
((IPPPrintService)service).isIPPSupportedImages(
flavor.getMimeType()))) {
printableJob(new ImagePrinter(instream));
if (service instanceof IPPPrintService) {
((IPPPrintService)service).wakeNotifier();
} else {
((UnixPrintService)service).wakeNotifier();
}
return;
}
} catch (ClassCastException cce) {
@ -430,7 +434,11 @@ public class UnixPrintJob implements CancelablePrintJob {
instream = url.openStream();
} else {
printableJob(new ImagePrinter(url));
if (service instanceof IPPPrintService) {
((IPPPrintService)service).wakeNotifier();
} else {
((UnixPrintService)service).wakeNotifier();
}
return;
}
} catch (ClassCastException cce) {