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

changeset 2528
eb284abd64fe
parent 2381
d02e9b7444fe
child 2590
ffed5df6bec9
     1.1 --- a/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java	Fri Jun 20 10:56:31 2014 -0600
     1.2 +++ b/src/share/classes/com/sun/tools/javac/comp/LambdaToMethod.java	Mon Jun 23 13:14:32 2014 -0700
     1.3 @@ -1994,7 +1994,11 @@
     1.4                  // If instance access isn't needed, make it static.
     1.5                  // Interface instance methods must be default methods.
     1.6                  // Lambda methods are private synthetic.
     1.7 +                // Inherit ACC_STRICT from the enclosing method, or, for clinit,
     1.8 +                // from the class.
     1.9                  translatedSym.flags_field = SYNTHETIC | LAMBDA_METHOD |
    1.10 +                        owner.flags_field & STRICTFP |
    1.11 +                        owner.owner.flags_field & STRICTFP |
    1.12                          PRIVATE |
    1.13                          (thisReferenced? (inInterface? DEFAULT : 0) : STATIC);
    1.14  

mercurial