On Tue, 21 Nov 2023 21:23:12 GMT, Phil Race <p...@openjdk.org> wrote:

> For as long as we've had the macOS port, it seems that queries on the 
> GraphicsConfiguration associated with
> a printer would give you null for the defaultTransform.
> Clearly this API isn't a popular one to call in such a context else we'd have 
> had lots of reports.
> We have a test that would have caught it except that until recently the macOS 
> printing implementation
> was swallowing exceptions it should not.

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

> 2094: 
> 2095:     synchronized protected void setGraphicsConfigInfo(AffineTransform 
> at,
> 2096:                                             double pw, double ph) {

Let's use blessed modifiers order
Suggestion:

    protected synchronized void setGraphicsConfigInfo(AffineTransform at,
                                                      double pw, double ph) {

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

PR Review Comment: https://git.openjdk.org/jdk/pull/16773#discussion_r1401632131

Reply via email to