RFR: 8315113: Print request Chromaticity.MONOCHROME attribute does not work on macOS [v5]

GennadiyKrivoshein duke at openjdk.org
Fri Mar 21 15:49:27 UTC 2025


On Fri, 7 Mar 2025 22:03:08 GMT, Phil Race <prr at openjdk.org> wrote:

>> src/java.desktop/macosx/classes/sun/print/GrayscaleProxyGraphics2D.java line 3:
>> 
>>> 1: /*
>>> 2:  * Copyright (c) 2024, Oracle and/or its affiliates. All rights reserved.
>>> 3:  * Copyright (c) 2024, BELLSOFT. All rights reserved.
>> 
>> I suggest updating everything to be 2025
>
> This class *could* be useful in other cases besides macOS. So perhaps you can move it to share/classes/sun/print ?
> I note that macOS printing - unlike the Postscript and GDI cases - doesn't depend on the Banding raster print path.
> To use it elsewhere, if there's transparency, we'd need to do something similar there to translate the band to gray - but that should not be too hard, if we need it.

Moved to the share/classes/sun/print.

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

PR Review Comment: https://git.openjdk.org/jdk/pull/21930#discussion_r2007858185


More information about the client-libs-dev mailing list