1.1 --- a/test/tools/javac/lambda/TargetType42.java Fri Apr 18 23:58:05 2014 +0100 1.2 +++ b/test/tools/javac/lambda/TargetType42.java Tue Apr 22 17:55:22 2014 +0100 1.3 @@ -1,5 +1,5 @@ 1.4 /* 1.5 - * Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved. 1.6 + * Copyright (c) 2012, 2014, Oracle and/or its affiliates. All rights reserved. 1.7 * DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER. 1.8 * 1.9 * This code is free software; you can redistribute it and/or modify it 1.10 @@ -31,12 +31,18 @@ 1.11 class TargetType42 { 1.12 1.13 interface SAM<X, Y> { 1.14 - Y f(X x); 1.15 + Y f(X x); 1.16 } 1.17 1.18 <Z> void m(SAM<String, SAM<Z, Object>> s, Z z) { } 1.19 1.20 void test(Object obj) { 1.21 - m((x)->{ class Foo { }; return (x2)-> { new Foo(); return null; }; }, obj); 1.22 + m((x)->{ 1.23 + class Foo { } 1.24 + return (x2)-> { 1.25 + new Foo(); 1.26 + return null; 1.27 + }; 1.28 + }, obj); 1.29 } 1.30 }