[ http://jira.codehaus.org/browse/MNG-1142?page=comments#action_48649 ]
Brett Porter commented on MNG-1142:
-----------------------------------
from MNG-1208
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;
}
}
> restriction of [1.6,) and [1.5,1.6.2) in that order results in 1.6.2 instead
> of 1.6.1
> -------------------------------------------------------------------------------------
>
> Key: MNG-1142
> URL: http://jira.codehaus.org/browse/MNG-1142
> Project: Maven 2
> Type: Bug
> Components: maven-artifact
> Reporter: Brett Porter
> Priority: Minor
> Fix For: 2.0.1
>
>
> got this by adding ant [1.6,) to it0034, and ant [1.5,1.6.2) to one of its
> deps (deeper).
> I think this is caused by the fact that versions are resolved too early
> instead of retaining the restriction, but it needs a further look.
--
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]