[jdk11u-dev] RFR: 8272342: [TEST_BUG] java/awt/print/PrinterJob/PageDialogMarginTest.java catches all exceptions

Jonathan Dowland jdowland at openjdk.java.net
Mon Sep 20 13:31:22 UTC 2021


JBS: https://bugs.openjdk.java.net/browse/JDK-8272342

Please consider approving this for 11u. It's a test-only change. The test always passes prior to applying the patch, even if you deliberately supply invalid values. It also localizes the UI so, in my case, the test asks me to set a margin to 2 inches, but my localized UI lists the units in mm.

Patch applies clean. After applying, the UI is localized to US (so shows inches), passes if you follow the instructions, and fails if you do not, as it should.

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

Commit messages:
 - Backport a5ad7720d235610ad45fc341c61f164805f82a54

Changes: https://git.openjdk.java.net/jdk11u-dev/pull/377/files
 Webrev: https://webrevs.openjdk.java.net/?repo=jdk11u-dev&pr=377&range=00
  Issue: https://bugs.openjdk.java.net/browse/JDK-8272342
  Stats: 26 lines in 1 file changed: 2 ins; 5 del; 19 mod
  Patch: https://git.openjdk.java.net/jdk11u-dev/pull/377.diff
  Fetch: git fetch https://git.openjdk.java.net/jdk11u-dev pull/377/head:pull/377

PR: https://git.openjdk.java.net/jdk11u-dev/pull/377


More information about the jdk-updates-dev mailing list