equal
deleted
inserted
replaced
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())); |