> Fix for https://bugs.openjdk.org/browse/JDK-8349350. It's impossible to use 
> more that one print option.
> 
> **Reason of the bug**:  
> execCmd array uses one index per print flag, but 'OPTIONS' flag can use two 
> indexes for the options.
> 
> **Fix description**: 
> make the size of the execCmd array dependent on the number of options.
> 
> **Test**: 
> new test PrintExecCmdOptionTest.java created to check execution with multiple 
> options. (run on MacOS, Windows and linux x86_64)

GennadiyKrivoshein has updated the pull request incrementally with two 
additional commits since the last revision:

 - pass print options in UnixPrintJob as [ -o option[=value] ]
 - reset mediaTray to null for each PrintService

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

Changes:
  - all: https://git.openjdk.org/jdk/pull/23457/files
  - new: https://git.openjdk.org/jdk/pull/23457/files/291ed330..3ea14d68

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

  Stats: 167 lines in 3 files changed: 161 ins; 1 del; 5 mod
  Patch: https://git.openjdk.org/jdk/pull/23457.diff
  Fetch: git fetch https://git.openjdk.org/jdk.git pull/23457/head:pull/23457

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

Reply via email to