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

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

XMLWordPrintable

    • generic
    • generic

      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.

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

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: