On Tue, 13 Jan 2026 20:51:35 GMT, Phil Race <[email protected]> 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

Reply via email to