Uploaded image for project: 'Maven'
  1. Maven
  2. MNG-1208

VersionRange.getSelectedVersion returns upper bound even if exclusive

    XMLWordPrintableJSON

Details

    • Bug
    • Status: Closed
    • Major
    • Resolution: Duplicate
    • 2.0
    • None
    • None

    Description

      Found while searching for MNG-1207

      a call to VersionRange.getSelectedVersion() will return the upper bound even if the upper bound is exclusive. (and isSelectedVersionKnown would return false). This method should throw an exception if the selectedVersion is not known.

      else
      {
      Restriction restriction = (Restriction) restrictions.get( restrictions.size() - 1 );

      version = restriction.getUpperBound();
      if ( version == null )

      { version = RELEASE; }

      }

      Attachments

        Issue Links

          Activity

            People

              brett Brett Porter
              gconaty Garrett Conaty
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: