On Thu, 9 Apr 2026 16:49:06 GMT, Alexey Ivanov <[email protected]> wrote:

> Set the cause of a `PrinterException` to the `RuntimeException` caught during 
> printing, thus wrap any other exception that occurs during printer into a 
> `PrinterException`.
> 
> I updated the test to print to a file—there's no need to send a print job to 
> a physical printer. (Otherwise, the test asked me to select a file for the 
> PDF Printer that I had.)

src/java.desktop/share/classes/sun/print/RasterPrinterJob.java line 1421:

> 1419:             job.print(doc, attributes);
> 1420:         } catch (PrintException e) {
> 1421:             throw new PrinterException(e.toString());

Should we update this block as well?

-------------

PR Review Comment: https://git.openjdk.org/jdk/pull/30656#discussion_r3062158570

Reply via email to