> To reproduce the issue run the > [JavaSidesAttributePrinting](https://bugs.openjdk.org/secure/attachment/104448/JavaSidesAttributePrinting.java) > java sample with ONE_SIDED and DUPLEX arguments on macOS: > > java JavaSidesAttributePrinting ONE_SIDED > java JavaSidesAttributePrinting DUPLEX > > > The sample calls PrinterJob print method with the given sides attribute. > The pages are printed according to the printer default settings not according > to the provided Sides attributes. > > The fix propagates Sides attribute > - from `PrinterJob` to `NSPrintInfo` in > `CPrinterJob.javaPrinterJobToNSPrintInfo` method > - from `NSPrintInfo` to `PrinterJob` in > `CPrinterJob.nsPrintInfoToJavaPrinterJob` method
Alexander Scherbatiy has updated the pull request incrementally with one additional commit since the last revision: Local supportedSides variable is used insted of supportedSides field ------------- Changes: - all: https://git.openjdk.org/jdk/pull/14727/files - new: https://git.openjdk.org/jdk/pull/14727/files/65c9a23a..4480595c Webrevs: - full: https://webrevs.openjdk.org/?repo=jdk&pr=14727&range=02 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=14727&range=01-02 Stats: 2 lines in 1 file changed: 0 ins; 2 del; 0 mod Patch: https://git.openjdk.org/jdk/pull/14727.diff Fetch: git fetch https://git.openjdk.org/jdk.git pull/14727/head:pull/14727 PR: https://git.openjdk.org/jdk/pull/14727