jira.codehaus.org

  • Log In Access more options
    • Online Help
    • Keyboard Shortcuts
    • About JIRA
    • JIRA Credits
    • What?s New
  • Dashboards Access more options (Alt+d)
  • Projects Access more options (Alt+p)
  • Issues Access more options (Alt+i)
  • Maven 2 & 3
  • MNG-1208

VersionRange.getSelectedVersion returns upper bound even if exclusive

  • Log In
  • Views
    • XML
    • Word
    • Printable

Details

  • Type: Bug Bug
  • Status: Closed Closed
  • Priority: Major Major
  • Resolution: Duplicate
  • Affects Version/s: 2.0
  • Fix Version/s: None
  • Component/s: Artifacts and Repositories
  • Labels:
    None
  • Complexity:
    Novice

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

}

Issue Links

duplicates

Bug - A problem which impairs or prevents the functions of the product. MNG-1142 restriction of [1.6,) and [1.5,1.6.2) in that order results in 1.6.2 instead of 1.6.1

  • Minor - Minor loss of function, or other problem where easy workaround is present.
  • Closed - The issue is considered finished, the resolution is correct. Issues which are not closed can be reopened.

Activity

  • All
  • Comments
  • Work Log
  • History
  • Activity
There are no comments yet on this issue.

People

  • Assignee:
    Brett Porter
    Reporter:
    Garrett Conaty
Vote (0)
Watch (0)

Dates

  • Created:
    15/Oct/05 12:40 AM
    Updated:
    01/Feb/06 2:43 PM
    Resolved:
    15/Oct/05 12:53 AM
  • Atlassian JIRA (v5.0.4#731-sha1:3aa7374)
  • Report a problem
  • Powered by a free Atlassian JIRA open source license for Codehaus. Try JIRA - bug tracking software for your team.