VersionRange.getSelectedVersion returns upper bound even if exclusive
---------------------------------------------------------------------

         Key: MNG-1208
         URL: http://jira.codehaus.org/browse/MNG-1208
     Project: Maven 2
        Type: Bug
  Components: maven-artifact  
    Versions: 2.0    
 Reporter: Garrett Conaty


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;
                }
            }

-- 
This message is automatically generated by JIRA.
-
If you think it was sent incorrectly contact one of the administrators:
   http://jira.codehaus.org/secure/Administrators.jspa
-
For more information on JIRA, see:
   http://www.atlassian.com/software/jira


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to