hg: lambda/lambda/langtools: Compiler rejects break/continue inside lambda expression, as described in the SOTL document.
Neal Gafter
neal at gafter.com
Fri Jul 30 11:51:33 PDT 2010
Surely you've read the "specification" too literally. A break or continue,
if its target is within the same lambda, should be allowed.
On Fri, Jul 30, 2010 at 10:54 AM, <maurizio.cimadamore at oracle.com> wrote:
> Changeset: bc4c0b43b515
> Author: mcimadamore
> Date: 2010-07-30 18:53 +0100
> URL:
> http://hg.openjdk.java.net/lambda/lambda/langtools/rev/bc4c0b43b515
>
> Compiler rejects break/continue inside lambda expression, as described in
> the SOTL document.
>
> ! src/share/classes/com/sun/tools/javac/comp/Attr.java
> ! src/share/classes/com/sun/tools/javac/resources/compiler.properties
> + test/tools/javac/lambda/BadBreakContinue.java
> + test/tools/javac/lambda/BadBreakContinue.out
>
>
>
More information about the lambda-dev
mailing list