That's the defined behaviour.

On 07/11/2006, at 5:27 PM, Hilco Wijbenga wrote:

Hi all,

I have a question about VersionRange in maven-artifact.

Calling createFromVersionSpec with a spec of '1.0' returns a
VersionRange with a recommendedVersion of '1.0' and a restriction list
consisting of Restriction.EVERYTHING. As a consequence calling
containsVersion always returns true.

With a spec of '[1.0]' things work as I would expect. Shouldn't '1.0'
and '[1.0]' yield the same VersionRange? I tried adding the right (in
my opinion) restriction in createFromVersionSpec but then the unit
tests fail because testRange in VersionRangeTest explicitly checks
that the VersionRange for '1.0' has Restriction.EVERYTHING.

What is the expected behaviour here?

Cheers,
Hilco

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

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

Reply via email to