RFR: 8340114: Remove outdated SelectVersion() function from the launcher and update the code comments explaining the code flow [v2]

David Holmes dholmes at openjdk.org
Mon Sep 16 01:50:08 UTC 2024


On Mon, 16 Sep 2024 01:29:45 GMT, Jaikiran Pai <jpai at openjdk.org> wrote:

>> src/java.base/share/native/libjli/java.c line 1345:
>> 
>>> 1343:             if (JLI_StrCCmp(arg, "-Djava.class.path=") == 0) {
>>> 1344:                 _have_classpath = JNI_TRUE;
>>> 1345:             } else if (JLI_StrCmp(arg, "-Djava.awt.headless=true") == 0) {
>> 
>> Was this processing moved from somewhere else?
>
> Hello David, this was in the SelectVersion() method that we removed in this PR https://github.com/openjdk/jdk/pull/20997/files#diff-c3caaf3e347b1a477e2b7278cb6a35da04a597de5632c13351a6e4e5a2924d21L1154

Okay I initially assumed I knew what `SelectVersion` did, now it seems it did half a dozen things and we are still doing a large portion of them, but now moved to other locations in the code: splashscreen, headless ...

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

PR Review Comment: https://git.openjdk.org/jdk/pull/20997#discussion_r1760446054


More information about the core-libs-dev mailing list