[jdk25u-dev] RFR: 8320677: Printer tests use invalid '@run main/manual=yesno
Roland Mesde
duke at openjdk.org
Wed Feb 11 22:32:53 UTC 2026
Backporting JDK-8320677: Printer tests use invalid '@run main/manual=yesno.
This PR fixes printer tests that used invalid @run main/manual=yesno syntax by removing yesno, migrating to PassFailJFrame framework, and adding missing @test tag to PolylinePrintingTest.java.
For parity with Oracle JDK.
Ran manual tests on macos-aarch64:
~/github/jtreg/build/images/jtreg/bin/jtreg -jdk build/macosx-aarch64-server-release/images/jdk -m test/jdk/java/awt/print/PrinterJob/PageRanges.java
Screenshots:
<img width="1394" height="729" alt="PageRanges1" src="https://github.com/user-attachments/assets/004c3b08-f42c-484b-9443-be9859b7fb19" />
<img width="1209" height="930" alt="PageRanges2" src="https://github.com/user-attachments/assets/fce8acef-7948-4330-9067-2d922042f49f" />
Output:
[PageRanges1.pdf](https://github.com/user-attachments/files/25245460/PageRanges1.pdf)
[PageRanges2.pdf](https://github.com/user-attachments/files/25245462/PageRanges2.pdf)
Result:
[summary.txt](https://github.com/user-attachments/files/25245463/summary.txt)
~/github/jtreg/build/images/jtreg/bin/jtreg -jdk build/macosx-aarch64-server-release/images/jdk -m test/jdk/java/awt/print/PrinterJob/PolylinePrintingTest.java
Screenshot:
<img width="1304" height="910" alt="PolylinePrinting" src="https://github.com/user-attachments/assets/b3e6424e-0fdd-4959-ac7d-ebb3ba546b84" />
Output:
[PolylinePrinting.pdf](https://github.com/user-attachments/files/25245616/PolylinePrinting.pdf)
Result:
[summary.txt](https://github.com/user-attachments/files/25245612/summary.txt)
-------------
Commit messages:
- Backport ffcb1585ed6c2a2bff28be6854d44a672aa31a0b
Changes: https://git.openjdk.org/jdk25u-dev/pull/260/files
Webrev: https://webrevs.openjdk.org/?repo=jdk25u-dev&pr=260&range=00
Issue: https://bugs.openjdk.org/browse/JDK-8320677
Stats: 218 lines in 2 files changed: 44 ins; 152 del; 22 mod
Patch: https://git.openjdk.org/jdk25u-dev/pull/260.diff
Fetch: git fetch https://git.openjdk.org/jdk25u-dev.git pull/260/head:pull/260
PR: https://git.openjdk.org/jdk25u-dev/pull/260
More information about the jdk-updates-dev
mailing list