RFR: 8373239: Test java/awt/print/PrinterJob/PageRanges.java fails with incorrect selection of printed pages [v4]

Prasanta Sadhukhan psadhukhan at openjdk.org
Tue Jan 27 03:42:23 UTC 2026


> If same `PrinterJob `is reused to first print user-set `PageRange `pages and then print ALL pages, it prints the first print job correctly as the page range is set but 2nd job doesn't print ALL pages and reprint the same page range as `from` and `to` page are not reset and reused
> 
> Fix is made to check if page range is not set then print all pages

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

  Reset page range

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/29312/files
  - new: https://git.openjdk.org/jdk/pull/29312/files/6ddd69ec..9eb3a02e

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

  Stats: 2 lines in 1 file changed: 2 ins; 0 del; 0 mod
  Patch: https://git.openjdk.org/jdk/pull/29312.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/29312/head:pull/29312

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


More information about the client-libs-dev mailing list