Skip to content

Version overloading #423

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 6 commits into
base: master
Choose a base branch
from
Open

Version overloading #423

wants to merge 6 commits into from

Conversation

faizilham
Copy link

@faizilham faizilham commented May 26, 2025

Comments here are for minor corrections to the text itself.
The discussion about this feature is in #431.

@faizilham faizilham mentioned this pull request May 26, 2025
Any leading zeroes within the integer parts are ignored, such that `1.02` == `1.2`.
Version strings that do not match this format are reported as an error.
Version strings are parsed using the [Apache Maven comparable version](https://maven.apache.org/ref/3.5.2/maven-artifact/apidocs/org/apache/maven/artifact/versioning/ComparableVersion.html),
which is [already implemented in the Kotlin compiler](https://github.com/JetBrains/kotlin/blob/d2966040c414579bb393c3fbcd517eb27f040efb/compiler/util/src/org/jetbrains/kotlin/config/MavenComparableVersion.java).
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The word "implemented" is a bit weird here because MavenComparableVersion.java is just taken verbatim from the Maven project. (Also in the "Semver-like version number" section)

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Btw, MavenComparableVersion.java hasn't been updated for 9 years since it was originally copied from the Maven project, so if there are any bug fixes or behavior changes there, probably we need to update it with a newer version.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

because MavenComparableVersion.java is just taken verbatim

Ah okay, somehow I missed this.

we need to update it with a newer version.

Got it, I will note this for the implementation.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants