You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
"Java --version" command as "Visual Studio 2026" is using, is reporting wrong versionnumbers on neweste builds of both Microsoft OpenJDK 25 and 21, they are not using the standard "Major.Minor.Buildnr.Revision" #687
Running "Java --version" command as "Visual Studio 2026" is using,
is reporting wrong versionnumbers on neweste builds of both Microsoft OpenJDK 25 and 21,
they are not using the standard "Major.Minor.Buildnr.Revision",
.the neweste builds have now five elements on the versionsnumbers.
mrdoc22 this was a deliberate change as there was an emergency patch release for the eMadhura certificate issue, creating a 5th digit in the version string. Is this causing an issue or just unexpected?
Hello mrdoc22 and duckblaster, I have just finished investigating this issue. First, I want to confirm that all of our JDKs are correctly versioned as they are published. This means that their versions strings are correct, so JDKs 17, 21, and 25 are meant to have a 5th digit in their version strings.
This version string was decided by Oracle and the OpenJDK community, and Microsoft wanted to use the same versioning as the community & Oracle in order to minimize confusion for our customers.
I have also found official documentation that confirms that JDK versioning can have 5 or more numbers in the version string. For more info, please see JEP 322 (which is the official OpenJDK specification) or the official Oracle docs for JDK25, JDK21, JDK17, etc.
Here, you will find the following quote:
The fifth and later elements of a version number are free for use by platform implementors, to identify implementor-specific patch releases.
In light of these developments, I would recommend that .NET MAUI update their regex to account for the possibility of longer JDK versioning.
Please let me know if you have any questions, otherwise I plan on closing this issue by EoD today or tomorrow.
Activity
karianna commentedon Nov 9, 2026
mrdoc22 this was a deliberate change as there was an emergency patch release for the eMadhura certificate issue, creating a 5th digit in the version string. Is this causing an issue or just unexpected?
duckblaster commentedon Nov 9, 2026
Martijn Verburg (@karianna) It's breaking .Net Maui SDK, it can't parse the version number so thinks the jdk is not installed.
https://developercommunity.visualstudio.com/t/NET-MAUI-rejects-OpenJDK-2101302-as/11176957
karianna commentedon Nov 9, 2026
Assigning to jmjaffe37 - suspect this may need the MAUI team to adjust their SDK but we should have an internal discussion regardless.
jmjaffe37 commentedon Nov 9, 2026
Hello mrdoc22 and duckblaster, I have just finished investigating this issue. First, I want to confirm that all of our JDKs are correctly versioned as they are published. This means that their versions strings are correct, so JDKs 17, 21, and 25 are meant to have a 5th digit in their version strings.
This version string was decided by Oracle and the OpenJDK community, and Microsoft wanted to use the same versioning as the community & Oracle in order to minimize confusion for our customers.
I have also found official documentation that confirms that JDK versioning can have 5 or more numbers in the version string. For more info, please see JEP 322 (which is the official OpenJDK specification) or the official Oracle docs for JDK25, JDK21, JDK17, etc.
Here, you will find the following quote:
In light of these developments, I would recommend that .NET MAUI update their regex to account for the possibility of longer JDK versioning.
Please let me know if you have any questions, otherwise I plan on closing this issue by EoD today or tomorrow.