2

It's not really an error but when I am checking the runtime version it gives me the following, does that mean am I doing something wrong?

jshell> Runtime.version()
$3 ==> 12.0.1+12
Naman
  • 27,789
  • 26
  • 218
  • 353
Venkateshreddy Pala
  • 873
  • 1
  • 6
  • 11
  • 3
    Why do you find this wrong? It's the Java version that you're executing the `jshell` for, right? Your expectation would clarify the question a bit further. – Naman May 31 '19 at 02:09
  • 1
    What you might also be interested in [What does the 4th number mean in Java 9's version string scheme?](https://stackoverflow.com/questions/47156016/what-does-the-4th-number-mean-in-java-9s-version-string-scheme) – Naman May 31 '19 at 02:38
  • 2
    [Time-Based Release Versioning](http://openjdk.java.net/jeps/322) – ZhekaKozlov May 31 '19 at 07:52

1 Answers1

5

Current version of OpenJDK = 12.0.1+12

Nothing is amiss. Version 12.0.1 Build 12 is the currently shipping version of the OpenJDK implementation of Java.

See this screenshot of the AdoptOpenJDK website. Notice the version number 12.0.1+12 circled here in orange.

screenshot of AdoptOpenJDK web site download page showing current version of Java as 10.0.1+12

To understand the semantics of the version numbering for Java 10 and later, see JEP 322: Time-Based Release Versioning.

Basil Bourque
  • 303,325
  • 100
  • 852
  • 1,154