< prev index next >
test/langtools/tools/javac/switchexpr/LambdaCapture.java
Print this page
rev 56806 : 8232684: Make switch expressions final
Reviewed-by: TBD
*** 24,34 ****
/*
* @test
* @bug 8220041
* @summary Verify variable capture works inside switch expressions which are
* inside variable declarations
! * @compile --enable-preview -source ${jdk.version} LambdaCapture.java
*/
import java.util.Objects;
public class LambdaCapture {
--- 24,34 ----
/*
* @test
* @bug 8220041
* @summary Verify variable capture works inside switch expressions which are
* inside variable declarations
! * @compile LambdaCapture.java
*/
import java.util.Objects;
public class LambdaCapture {
< prev index next >