1.1 --- a/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java Wed Nov 07 17:20:12 2012 -0800 1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java Tue Nov 13 08:06:00 2012 -0800 1.3 @@ -1120,10 +1120,10 @@ 1.4 if (context != null 1.5 && tree.encl == null 1.6 && tree.def == null 1.7 - && tree.type.getEnclosingType().hasTag(NONE)) { 1.8 + && !tree.type.getEnclosingType().hasTag(NONE)) { 1.9 Type encl = tree.type.getEnclosingType(); 1.10 Type current = context.owner.enclClass().type; 1.11 - while (current.hasTag(NONE)) { 1.12 + while (!current.hasTag(NONE)) { 1.13 if (current.tsym.isSubClass(encl.tsym, types)) { 1.14 return true; 1.15 }