hg: lambda/lambda/langtools: Fix: Avoid circularity between LambdaToMethod.visitClassDef and LambdaTranslationContext.complete()

maurizio.cimadamore at oracle.com maurizio.cimadamore at oracle.com
Tue Feb 19 03:34:09 PST 2013


Changeset: 9e101aaa2c5c
Author:    mcimadamore
Date:      2013-02-19 11:33 +0000
URL:       http://hg.openjdk.java.net/lambda/lambda/langtools/rev/9e101aaa2c5c

Fix: Avoid circularity between LambdaToMethod.visitClassDef and LambdaTranslationContext.complete()

Simplify logic for handling classes nested within a lambda; Lower always capture 'this' when an inner class is defined in a non-static context - this update to LambdaToMethod reflects the behavior in Lower: any lambda (defined in a non-static context) defining an inner class will indirectly capture 'this'. Lambdas that do not define any inner classes will continue to capture 'this' on-demand.

! src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java
! src/share/classes/com/sun/tools/javac/jvm/ClassWriter.java
! test/tools/javac/lambda/LambdaExpr15.java



More information about the lambda-dev mailing list