You are viewing a plain text version of this content. The canonical link for it is here.
Posted to dev@maven.apache.org by "Garrett Conaty (JIRA)" <ji...@codehaus.org> on 2005/10/15 07:41:11 UTC
[jira] Created: (MNG-1208) VersionRange.getSelectedVersion returns upper bound even if exclusive
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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org
[jira] Closed: (MNG-1208) VersionRange.getSelectedVersion returns upper bound even if exclusive
Posted by "Brett Porter (JIRA)" <ji...@codehaus.org>.
[ http://jira.codehaus.org/browse/MNG-1208?page=all ]
Brett Porter closed MNG-1208:
-----------------------------
Assign To: Brett Porter
Resolution: Duplicate
> 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
> Assignee: Brett Porter
>
>
> 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: dev-unsubscribe@maven.apache.org
For additional commands, e-mail: dev-help@maven.apache.org