RFR: 8297191: [macos] Printing a page range with starting page > 1 results in missing pages [v5]

Alexey Ivanov aivanov at openjdk.org
Wed Jan 7 22:33:16 UTC 2026


On Wed, 26 Nov 2025 16:25:04 GMT, Christian Heilmann <duke at openjdk.org> wrote:

>> This PR fixes a bug that caused no or the wrong set of pages to be printed when using page ranges on macOS.
>> 
>> The main fix is to change the 'location' value of the returned NSRange from the knowsPageRange method to 1 in the native class PrinterView.m.
>
> Christian Heilmann has updated the pull request incrementally with two additional commits since the last revision:
> 
>  - Merge branch 'pr/8297191' of https://github.com/christianheilmann/jdk into pr/11266
>  - added 8297191 to @bug

Since this PR wasn't integrated in 2025, we should bump the copyright years to 2026.

I ran all the client tests through Oracle CI, and no failures are reported.

I ran printer tests on my Mac, and I couldn't see any failures. Thus, there are no showstoppers.

@prrace Do you have any other comments? Would you approve the PR?

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

PR Comment: https://git.openjdk.org/jdk/pull/11266#issuecomment-3721089803


More information about the client-libs-dev mailing list