src/share/classes/com/sun/tools/javac/code/Symbol.java

changeset 308
03944ee4fac4
parent 155
4d2d8b6459e1
child 341
85fecace920b
     1.1 --- a/src/share/classes/com/sun/tools/javac/code/Symbol.java	Fri Jun 26 12:22:40 2009 -0700
     1.2 +++ b/src/share/classes/com/sun/tools/javac/code/Symbol.java	Fri Jun 26 18:51:39 2009 -0700
     1.3 @@ -100,6 +100,17 @@
     1.4       */
     1.5      public Type type;
     1.6  
     1.7 +    /** The type annotations targeted to a tree directly owned by this symbol
     1.8 +     */
     1.9 +    // type annotations are stored here for two purposes:
    1.10 +    //  - convenient location to store annotations for generation after erasure
    1.11 +    //  - a private interface for accessing type annotations parsed from
    1.12 +    //    classfiles
    1.13 +    //  the field is populated for the following declaration only
    1.14 +    //  class, field, variable and type parameters
    1.15 +    //
    1.16 +    public List<Attribute.TypeCompound> typeAnnotations;
    1.17 +
    1.18      /** The owner of this symbol.
    1.19       */
    1.20      public Symbol owner;
    1.21 @@ -122,6 +133,7 @@
    1.22          this.completer = null;
    1.23          this.erasure_field = null;
    1.24          this.attributes_field = List.nil();
    1.25 +        this.typeAnnotations = List.nil();
    1.26          this.name = name;
    1.27      }
    1.28  

mercurial