langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 11143 9dbe313bfb74
parent 10950 e87b50888909
child 11144 8a4ae514eedf
equal deleted inserted replaced
11142:45d0ec1e7463 11143:9dbe313bfb74
  1973         if (!types.isReifiable(elemtype))
  1973         if (!types.isReifiable(elemtype))
  1974             log.error(tree.pos(), "generic.array.creation");
  1974             log.error(tree.pos(), "generic.array.creation");
  1975         result = check(tree, owntype, VAL, pkind, pt);
  1975         result = check(tree, owntype, VAL, pkind, pt);
  1976     }
  1976     }
  1977 
  1977 
       
  1978     @Override
       
  1979     public void visitLambda(JCLambda that) {
       
  1980         throw new UnsupportedOperationException("Lambda expression not supported yet");
       
  1981     }
       
  1982 
  1978     public void visitParens(JCParens tree) {
  1983     public void visitParens(JCParens tree) {
  1979         Type owntype = attribTree(tree.expr, env, pkind, pt);
  1984         Type owntype = attribTree(tree.expr, env, pkind, pt);
  1980         result = check(tree, owntype, pkind, pkind, pt);
  1985         result = check(tree, owntype, pkind, pkind, pt);
  1981         Symbol sym = TreeInfo.symbol(tree);
  1986         Symbol sym = TreeInfo.symbol(tree);
  1982         if (sym != null && (sym.kind&(TYP|PCK)) != 0)
  1987         if (sym != null && (sym.kind&(TYP|PCK)) != 0)