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

Refactor com.sun.tools.javac.code.Source in terms of javax.lang.model.SourceVersion

    Details

    • Subcomponent:
    • CPU:
      generic
    • OS:
      generic

      Description

      Internally, javac uses com.sun.tools.javac.code.Source to track and distinguish properties of different source versions. JSR 269 has added javax.lang.model.SourceVersion for a similar purpose. The JSR 269 implementation now must compare objects representing these two different views of source code and the code uses the brittle idiom of comparing the (shifted) ordinal positions of the two enums in JavacProcessingEnvironment.

      This could be improved.

        Attachments

          Issue Links

            Activity

              People

              • Assignee:
                jjg Jonathan Gibbons
                Reporter:
                darcy Joe Darcy
              • Votes:
                0 Vote for this issue
                Watchers:
                1 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Imported:
                  Indexed: