On 2/11/24 11:14, Julian Waters wrote:
Hi Erik,

Thanks for the clarification! How then does Oracle compile the JDK, such that 
the versioning numbers appear in the following manner?

C:\Users\vertig0>java --version
java 21 2023-09-19 LTS
Java(TM) SE Runtime Environment (build 21+35-LTS-2513)
Java HotSpot(TM) 64-Bit Server VM (build 21+35-LTS-2513, mixed mode, sharing)

(My system doesn't have OpenJDK as its main JDK, and uses the Oracle JDK instead. The "Java" strings should 
rightfully be "OpenJDK", so pay no mind to that. Last I remember, the printed OpenJDK version is the same as 
above except for "Java(TM)" being "OpenJDK" instead)

The MSYS2 Project would prefer to have its MinGW JDKs versioned as such (Eg build 
21+35-LTS-2513 or whatever), rather than something like 
"23-internal-adhoc.mingwci.jdk", and we'd prefer to mimic how Oracle compiles 
both OpenJDK and Oracle JDK as closely as possible.

I sh ./configure --helpbelieve Oracle probably does it by specifying different 
parts of the version string on configure, something like

bash configure <Whatever the option string and other compile options are>

"sh ./configure --help" and look for the --with-version options.

--
Andrew Haley  (he/him)
Java Platform Lead Engineer
Red Hat UK Ltd. <https://www.redhat.com>
https://keybase.io/andrewhaley
EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671

Reply via email to