src/share/classes/com/sun/tools/javac/comp/Flow.java

changeset 2114
09a414673570
parent 2047
5f915a0c9615
child 2135
d7e155f874a7
equal deleted inserted replaced
2113:7d266a2b31b2 2114:09a414673570
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);

mercurial