1716 @Override |
1716 @Override |
1717 public void visitMethodDef(JCMethodDecl tree) { |
1717 public void visitMethodDef(JCMethodDecl tree) { |
1718 if (tree.body == null) { |
1718 if (tree.body == null) { |
1719 return; |
1719 return; |
1720 } |
1720 } |
1721 /* MemberEnter can generate synthetic methods, ignore them |
1721 /* Ignore synthetic methods, except for translated lambda methods. |
1722 */ |
1722 */ |
1723 if ((tree.sym.flags() & SYNTHETIC) != 0) { |
1723 if ((tree.sym.flags() & (SYNTHETIC | LAMBDA_METHOD)) == SYNTHETIC) { |
1724 return; |
1724 return; |
1725 } |
1725 } |
1726 |
1726 |
1727 final Bits initsPrev = new Bits(inits); |
1727 final Bits initsPrev = new Bits(inits); |
1728 final Bits uninitsPrev = new Bits(uninits); |
1728 final Bits uninitsPrev = new Bits(uninits); |
1793 } |
1793 } |
1794 |
1794 |
1795 protected void initParam(JCVariableDecl def) { |
1795 protected void initParam(JCVariableDecl def) { |
1796 inits.incl(def.sym.adr); |
1796 inits.incl(def.sym.adr); |
1797 uninits.excl(def.sym.adr); |
1797 uninits.excl(def.sym.adr); |
1798 } |
1798 } |
1799 |
1799 |
1800 public void visitVarDef(JCVariableDecl tree) { |
1800 public void visitVarDef(JCVariableDecl tree) { |
1801 boolean track = trackable(tree.sym); |
1801 boolean track = trackable(tree.sym); |
1802 if (track && tree.sym.owner.kind == MTH) { |
1802 if (track && tree.sym.owner.kind == MTH) { |
1803 newVar(tree); |
1803 newVar(tree); |