juherr / pkgscanner

Automatically exported from code.google.com/p/pkgscanner
Apache License 2.0
0 stars 0 forks source link

OSGi version convertor converts "" to ".0.0" #11

Closed GoogleCodeExporter closed 9 years ago

GoogleCodeExporter commented 9 years ago
What steps will reproduce the problem?
1. Set a package version of blank
2. DefaultOsgiVersionNumber treats blank as a valid digit, and uses it as the 
major version number, resulting in a version of ".0.0"

What is the expected output? What do you see instead?

Expected output is "0.0.0", I see ".0.0" instead.

What version of the product are you using? On what operating system?

0.9.4

Original issue reported on code.google.com by jrop...@gmail.com on 5 Jan 2011 at 11:39

GoogleCodeExporter commented 9 years ago
Attaching patch that fixes the issue, with tests.

Original comment by jrop...@gmail.com on 5 Jan 2011 at 11:49

Attachments:

GoogleCodeExporter commented 9 years ago
Fixed by OP

Original comment by donald.b...@gmail.com on 4 Oct 2012 at 3:59