Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8027181 Type Annotations Cleanup
  3. JDK-8035768

Move TypeAnnotationPosition from Attribute.Compound to Attribute.TypeCompound

    XMLWordPrintable

Details

    • 8
    • b08
    • Not verified

    Description

      The current implementation of type annotations models type annotations as a special case of annotations. However, the early stages of the javac pipeline have to consider that every annotation is potentially a type annotation. Therefore, the relationship should be reversed.

      Under the present model, type annotations are represented with Attribute.TypeCompound, while regular annotations are represented with Attribute.Compound, and there are generally two separate codepaths for dealing with these two classes. This is a source of confusion and bugs, and should be eliminated.

      Attachments

        Issue Links

          Activity

            People

              emc Eric Mccorkle
              emc Eric Mccorkle
              Votes:
              0 Vote for this issue
              Watchers:
              3 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: