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

GennadiyKrivoshein duke at openjdk.org
Thu Mar 13 20:30:09 UTC 2025


On Wed, 5 Feb 2025 07:03:26 GMT, GennadiyKrivoshein <duke at openjdk.org> wrote:

> 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)

This pull request has now been integrated.

Changeset: 3da5e3fe
Author:    Gennadiy Krivoshein <gennadiy.krivoshein at bell-sw.com>
URL:       https://git.openjdk.org/jdk/commit/3da5e3fe10350f9bf0ff8c6b8d9aad3f50646364
Stats:     270 lines in 4 files changed: 266 ins; 0 del; 4 mod

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

Reviewed-by: prr, kizune, psadhukhan

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

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


More information about the client-libs-dev mailing list