RFR: 8349350: Unable to print using InputSlot and OutputBin print attributes at the same time

Prasanta Sadhukhan psadhukhan at openjdk.org
Fri Feb 7 08:16:10 UTC 2025


On Fri, 7 Feb 2025 08:08:39 GMT, GennadiyKrivoshein <duke at openjdk.org> wrote:

>> src/java.desktop/share/classes/sun/print/PSPrinterJob.java line 1578:
>> 
>>> 1576:         }
>>> 1577:         if (options != null && !options.isEmpty()) {
>>> 1578:             optionArgs = options.trim().split("\\s+");
>> 
>> In what format the options are expected for this regex to work? Is it same for both linux and mac?
>
> The format is space delimited values, each value is a "key=value". 
> There is no difference between Linux and Mac and there are no changes in the format of the options.

If it's a space delimited values, then can't we use "options.trim().split(" ")" 
same as what we have been using below?

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

PR Review Comment: https://git.openjdk.org/jdk/pull/23457#discussion_r1946125709


More information about the client-libs-dev mailing list