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 ------------- Commit messages: - 8311033: [macos] PrinterJob does not take into account Sides attribute Changes: https://git.openjdk.org/jdk/pull/14727/files Webrev: https://webrevs.openjdk.org/?repo=jdk&pr=14727&range=00 Issue: https://bugs.openjdk.org/browse/JDK-8311033 Stats: 288 lines in 4 files changed: 288 ins; 0 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