On Thu, 4 Jul 2024 10:34:24 GMT, Prasanta Sadhukhan <[email protected]> wrote:
> When a printjob is cancelled midway, `PrinterAbortException `was not thrown > in macos. because > firstly,` cancelCheck` invokes` LWCToolkit.invokeLater` with null as > parameter causing it to fail with NPE and > secondly PrinterAbortException was consumed silently when `printLoop` throws > any exception > which is rectified to throw the PrinterAbortException when encountered.. This pull request has now been integrated. Changeset: 333a9973 Author: Prasanta Sadhukhan <[email protected]> URL: https://git.openjdk.org/jdk/commit/333a9973f1e99faa665e96c30bcfac7877cbdc1c Stats: 35 lines in 3 files changed: 20 ins; 2 del; 13 mod 8335231: [macos] Test java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java failed on macOS because the case didn't get the expected PrintAbortException Reviewed-by: tr, abhiscxk ------------- PR: https://git.openjdk.org/jdk/pull/20027
