Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8333895

ModuleDescriptor.Version does not document that version should start with digit

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P4 P4
    • None
    • 9
    • core-libs
    • None

      ModuleDescriptor.Version is specified as starting with a series of tokens separated by `.` characters, where 'each token is either a non-negative integer or a string'.

      However, the `parse` method rejects any version that does not start with a digit:

          jshell> ModuleDescriptor.Version.parse("asdf")
          | Exception java.lang.IllegalArgumentException: asdf: Version string does not start with a number
          | at ModuleDescriptor$Version.<init> (ModuleDescriptor.java:1074)
          | at ModuleDescriptor$Version.parse (ModuleDescriptor.java:1153)
          | at (#2:1)

      The documentation should reflect this fact (or the implementation relaxed).

            Unassigned Unassigned
            jvernee Jorn Vernee
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: