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

Alexey Ivanov aivanov at openjdk.org
Tue Nov 18 14:31:47 UTC 2025


On Wed, 3 Sep 2025 01:41:44 GMT, Phil Race <prr at openjdk.org> wrote:

> I think this all bears a bit more studying as to which code to update for the fix - one of these has to go (although knowsPageRange probably needs to exist and return YES, else the peek won't happen if I correctly read the Apple docs)

We have to return `YES` to `knowsPageRange`. Printing doesn't work otherwise.

I am still for simplifying the code if we're accepting what's currently suggested:

1. Get rid of `totalPages`. ([comment](https://github.com/openjdk/jdk/pull/11266#discussion_r2298979119))
2. Always use NSIntegerMax and remove the fTotalPages field. ([comment](https://github.com/openjdk/jdk/pull/11266#discussion_r2298982204))

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

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


More information about the client-libs-dev mailing list