RFR: 8268675: RTE from "Printable.print" propagates through "PrinterJob.print" [v2]

Jean-Noël Rouvignac duke at openjdk.org
Sun Feb 22 00:33:10 UTC 2026


On Mon, 16 Feb 2026 06:54:08 GMT, Renjith Kannath Pariyangad <rkannathpari at openjdk.org> wrote:

>> Hi Reviewers,
>> 
>> Add a parser to convert other exception to "PrinterException" for resolving this issue. Updated existing test for covering 'Windows' and 'Linux' platform.
>> 
>> Please review and let me know your suggestions.
>
> Renjith Kannath Pariyangad has updated the pull request incrementally with one additional commit since the last revision:
> 
>   Updated copyright year

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

> 1612: 
> 1613:         } catch (Throwable printError) {
> 1614:             if (printError instanceof PrinterException) {

Suggestion:

        } catch (PrinterException e) {
            throw e;
        } catch (Throwable printError) {
            throw (PrinterException)
                    new PrinterException().initCause(printError.getCause());

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

PR Review Comment: https://git.openjdk.org/jdk/pull/29733#discussion_r2836881012


More information about the client-libs-dev mailing list