langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/comp/DeferredAttr.java
changeset 26781 a786b07c7b91
parent 26532 aa84b6606229
child 27224 228abfa87080
equal deleted inserted replaced
26780:82b0aaba473d 26781:a786b07c7b91
   135         Env<AttrContext> env;
   135         Env<AttrContext> env;
   136         AttrMode mode;
   136         AttrMode mode;
   137         SpeculativeCache speculativeCache;
   137         SpeculativeCache speculativeCache;
   138 
   138 
   139         DeferredType(JCExpression tree, Env<AttrContext> env) {
   139         DeferredType(JCExpression tree, Env<AttrContext> env) {
   140             super(null, noAnnotations);
   140             super(null, TypeMetadata.empty);
   141             this.tree = tree;
   141             this.tree = tree;
   142             this.env = attr.copyEnv(env);
   142             this.env = attr.copyEnv(env);
   143             this.speculativeCache = new SpeculativeCache();
   143             this.speculativeCache = new SpeculativeCache();
   144         }
   144         }
   145 
   145 
   146         @Override
   146         @Override
   147         public DeferredType annotatedType(List<Attribute.TypeCompound> typeAnnotations) {
   147         public DeferredType clone(TypeMetadata md) {
   148             throw new AssertionError("Cannot annotate a deferred type");
   148             throw new AssertionError("Cannot add metadata to a deferred type");
   149         }
   149         }
   150 
   150 
   151         @Override
   151         @Override
   152         public TypeTag getTag() {
   152         public TypeTag getTag() {
   153             return DEFERRED;
   153             return DEFERRED;