Skip to content

"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

Closed

Description

@mrdoc22

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.

Activity

  1. karianna commented on Nov 9, 2026

    @karianna
    Member

    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?

  2. duckblaster commented on Nov 9, 2026

    @duckblaster
  3. karianna commented on Nov 9, 2026

    @karianna
    Member

    Assigning to jmjaffe37 - suspect this may need the MAUI team to adjust their SDK but we should have an internal discussion regardless.

  4. jmjaffe37 commented on Nov 9, 2026

    @jmjaffe37

    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.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

Labels

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions