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

Add method to SourceVersion that returns the numeric version

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: New
    • Priority: P4
    • Resolution: Unresolved
    • Affects Version/s: 16
    • Fix Version/s: None
    • Component/s: core-libs
    • Labels:
      None

      Description

      Working on JDK-8216497 we encountered a case where we need to retrieve the numeric feature release version from a `javax.lang.model.SourceVersion` constant. Currently, the only way to achieve this is to extract the version number from the value's name, which is not a very good solution. `SourceVersion` should provide a method that returns the release as an `int`.

        Attachments

          Issue Links

            Activity

              People

              Assignee:
              Unassigned Unassigned
              Reporter:
              hannesw Hannes Wallnoefer
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

                Dates

                Created:
                Updated: