RFR: 8368606: Printer lookup returns empty on AIX platform due to uninitialized results list [v3]
Ravi-Patel8
duke at openjdk.org
Mon Sep 29 04:17:34 UTC 2025
> Bug Ref: https://bugs.openjdk.org/browse/JDK-8368606
>
> As part of [JDK-8344057](https://bugs.openjdk.org/browse/JDK-8344057) ("Remove doPrivileged calls from unix platform sources in the java.desktop module"), changes were made to execCmd() in
> `src/java.desktop/unix/classes/sun/print/PrintServiceLookupProvider.java`.
> In the updated implementation, execCmd(...) code is missing to initialize the results variable. It declares it as null and then tries to results.add(line), which prevents the results list from being populated with printer names.
>
> Initializing the results variable will resolve the issue.
>
>
> Signed-off-by: Ravi.Patel8 <Ravi.Patel8 at ibm.com>
Ravi-Patel8 has updated the pull request incrementally with one additional commit since the last revision:
Add debug_println instead of System.err.println
Signed-off-by: Ravi.Patel8 <Ravi.Patel8 at ibm.com>
-------------
Changes:
- all: https://git.openjdk.org/jdk/pull/27482/files
- new: https://git.openjdk.org/jdk/pull/27482/files/80fcec26..432f398a
Webrevs:
- full: https://webrevs.openjdk.org/?repo=jdk&pr=27482&range=02
- incr: https://webrevs.openjdk.org/?repo=jdk&pr=27482&range=01-02
Stats: 1 line in 1 file changed: 0 ins; 0 del; 1 mod
Patch: https://git.openjdk.org/jdk/pull/27482.diff
Fetch: git fetch https://git.openjdk.org/jdk.git pull/27482/head:pull/27482
PR: https://git.openjdk.org/jdk/pull/27482
More information about the client-libs-dev
mailing list