1.1 --- a/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java Wed Mar 02 18:33:38 2016 +0530 1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java Tue Mar 29 10:48:49 2016 +0000 1.3 @@ -860,7 +860,7 @@ 1.4 private JCExpression makeReceiver(VarSymbol rcvr) { 1.5 if (rcvr == null) return null; 1.6 JCExpression rcvrExpr = make.Ident(rcvr); 1.7 - Type rcvrType = tree.sym.enclClass().type; 1.8 + Type rcvrType = tree.ownerAccessible ? tree.sym.enclClass().type : tree.expr.type; 1.9 if (rcvrType == syms.arrayClass.type) { 1.10 // Map the receiver type to the actually type, not just "array" 1.11 rcvrType = tree.getQualifierExpression().type;