RFR: 8335231: [macos] Test java/awt/print/PrinterJob/Cancel/PrinterJobCancel.java failed on macOS because the case didn't get the expected PrintAbortException [v3]

Prasanta Sadhukhan psadhukhan at openjdk.org
Thu Aug 1 05:12:51 UTC 2024


> 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..

Prasanta Sadhukhan has updated the pull request incrementally with one additional commit since the last revision:

  Restore invokeLater and throw PrinterAbortException from native

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/20027/files
  - new: https://git.openjdk.org/jdk/pull/20027/files/6c495ea1..c4c7f9d7

Webrevs:
 - full: https://webrevs.openjdk.org/?repo=jdk&pr=20027&range=02
 - incr: https://webrevs.openjdk.org/?repo=jdk&pr=20027&range=01-02

  Stats: 22 lines in 2 files changed: 18 ins; 0 del; 4 mod
  Patch: https://git.openjdk.org/jdk/pull/20027.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/20027/head:pull/20027

PR: https://git.openjdk.org/jdk/pull/20027


More information about the client-libs-dev mailing list