Uploaded image for project: 'Spring Data Commons'
  1. Spring Data Commons
  2. DATACMNS-496

Version.parse should not throw NumberFormatExecption when parsing version string containing non numeric parts.

    XMLWordPrintable

    Details

      Description

      The test below should not fail with NumberFormatException.

      @Test
      public void parseShouldRemoveNonNumericVersionParts() {
      	assertThat(Version.parse("2.0.0-rc1"), is(new Version(2, 0, 0)));
      }
      

      Ran into this issue while testing against mongodb server mongodb-osx-x86_64-2.6.1-rc0

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              cstrobl Christoph Strobl
              Reporter:
              cstrobl Christoph Strobl
              Last updater:
              Oliver Drotbohm
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

                Dates

                Created:
                Updated:
                Resolved: