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

Add method to SourceVersion that returns the numeric version

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 16
    • core-libs
    • None

      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`.

            darcy Joe Darcy
            hannesw Hannes Wallnoefer
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: