RFR: 8375221: Update code to get PrinterResolution from CUPS/IPP print service
Sergey Bylokhov
serb at openjdk.org
Wed Jan 14 04:57:29 UTC 2026
On Tue, 13 Jan 2026 20:51:35 GMT, Phil Race <prr at openjdk.org> wrote:
> Previous to this fix, no resolution was being found via CUPS/IPP and when the test case for printer resolution was falling back to the made up 300dpi setting. With this fix it finds the 600dpi from CUPS/IPP.
src/java.desktop/unix/classes/sun/print/IPPPrintService.java line 1718:
> 1716: PrinterResolution []arr = new PrinterResolution[printerResolutions.length];
> 1717: System.arraycopy(printerResolutions, 0, arr, 0, printerResolutions.length);
> 1718: return arr;
Can this be simplified to just "return printerResolutions.clone()"?
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/29208#discussion_r2688941209
More information about the client-libs-dev
mailing list