langtools/src/share/classes/com/sun/tools/javac/comp/Attr.java
changeset 24066 1dfb66929538
parent 23969 023c35e5c2b8
child 24219 e7dc661cafae
equal deleted inserted replaced
24065:fc4022e50129 24066:1dfb66929538
  2614          * a field, then if the field is:
  2614          * a field, then if the field is:
  2615          *
  2615          *
  2616          * - an instance field, we use the first constructor.
  2616          * - an instance field, we use the first constructor.
  2617          * - a static field, we create a fake clinit method.
  2617          * - a static field, we create a fake clinit method.
  2618          */
  2618          */
  2619         private Env<AttrContext> lambdaEnv(JCLambda that, Env<AttrContext> env) {
  2619         public Env<AttrContext> lambdaEnv(JCLambda that, Env<AttrContext> env) {
  2620             Env<AttrContext> lambdaEnv;
  2620             Env<AttrContext> lambdaEnv;
  2621             Symbol owner = env.info.scope.owner;
  2621             Symbol owner = env.info.scope.owner;
  2622             if (owner.kind == VAR && owner.owner.kind == TYP) {
  2622             if (owner.kind == VAR && owner.owner.kind == TYP) {
  2623                 //field initializer
  2623                 //field initializer
  2624                 lambdaEnv = env.dup(that, env.info.dup(env.info.scope.dupUnshared()));
  2624                 lambdaEnv = env.dup(that, env.info.dup(env.info.scope.dupUnshared()));