[
https://issues.apache.org/jira/browse/LUCENE-10578?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17545237#comment-17545237
]
Tomoko Uchida edited comment on LUCENE-10578 at 6/2/22 2:35 AM:
----------------------------------------------------------------
I picked some major distributions that are available on sdkman and printed
their runtime versions.
Latest in Java 11
{code}
# Coretto / Amazon
jshell> Runtime.version()
$1 ==> 11.0.15+9-LTS
# Java.net / Oracle
jshell> Runtime.version()
$1 ==> 11.0.12+7
# Microsoft
jshell> Runtime.version()
$1 ==> 11.0.15+10-LTS
# Temurin
jshell> Runtime.version()
$1 ==> 11.0.15+10
# Zulu
jshell> Runtime.version()
$1 ==> 11.0.15+10-LTS
{code}
Latest in Java 17
{code}
# Coretto / Amazon
jshell> Runtime.version()
$1 ==> 17.0.3+6-LTS
# Java.net / Oracle
jshell> Runtime.version()
$1 ==> 17.0.3+8-LTS-111
# Microsoft
jshell> Runtime.version()
$1 ==> 17.0.3+7-LTS
# Temurin
jshell> Runtime.version()
$1 ==> 17.0.3+7
# Zulu
jshell> Runtime.version()
$1 ==> 17.0.3+7-LTS
{code}
Java 19 EA
{code}
# Java.net
jshell> Runtime.version()
$1 ==> 19-ea+24-1832
{code}
According to
https://docs.oracle.com/javase/9/docs/api/java/lang/Runtime.Version.html, this
is a possible regex for capturing $MAJOR, $MINOR, $SECURITY versions.
{code}
>>> pat = re.compile(r"^([1-9][0-9]*)\.(0|[1-9][0-9]*)\.(0|[1-9][0-9]*).*$")
>>> m = re.match(pat, "11.0.15+10")
>>> m.group(1)
'11'
>>> m.group(2)
'0'
>>> m.group(3)
'15'
{code}
was (Author: tomoko uchida):
I picked some major distributions that are available on sdkman and printed
their runtime versions.
Latest in Java 11
{code}
# Coretto / Amazon
jshell> Runtime.version()
$1 ==> 11.0.15+9-LTS
# Java.net / Oracle
jshell> Runtime.version()
$1 ==> 11.0.12+7
# Microsoft
jshell> Runtime.version()
$1 ==> 11.0.15+10-LTS
# Temurin
jshell> Runtime.version()
$1 ==> 11.0.15+10
# Zulu
jshell> Runtime.version()
$1 ==> 11.0.15+10-LTS
{code}
Latest in Java 17
{code}
# Coretto / Amazon
jshell> Runtime.version()
$1 ==> 17.0.3+6-LTS
# Java.net / Oracle
jshell> Runtime.version()
$1 ==> 17.0.3+8-LTS-111
# Microsoft
jshell> Runtime.version()
$1 ==> 17.0.3+7-LTS
# Temurin
jshell> Runtime.version()
$1 ==> 17.0.3+7
# Zulu
jshell> Runtime.version()
$1 ==> 17.0.3+7-LTS
{code}
Java 19 EA
{code}
# Java.net
jshell> Runtime.version()
$1 ==> 19-ea+24-1832
{code}
> Make minimum required Java version for build more specific
> ----------------------------------------------------------
>
> Key: LUCENE-10578
> URL: https://issues.apache.org/jira/browse/LUCENE-10578
> Project: Lucene - Core
> Issue Type: Improvement
> Reporter: Tomoko Uchida
> Priority: Minor
>
> See this mail thread for background:
> [https://lists.apache.org/thread/6md5k94pqdkkwg0f66hor2sonm2t77jo]
> To prevent developers (especially, release managers) from using too old java
> versions, we could (should?) elaborate the minimum required java versions for
> the build.
> Possible questions in my mind:
> * should we stop the build with an error or emit a warning and continue?
> * do minor versions depend on the vendor? if yes, should we also specify the
> vendor?
> * how do we determine/maintain the minimum version?
>
>
--
This message was sent by Atlassian Jira
(v8.20.7#820007)
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]