mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-28 15:24:43 +02:00
8296968: Update langtools tests to use @enablePreview
Reviewed-by: sundar, jjg
This commit is contained in:
parent
2159170b41
commit
e2269fd2ca
32 changed files with 113 additions and 120 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2021, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2021, 2022, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -26,8 +26,7 @@
|
|||
* @bug 8267610 8269738
|
||||
* @summary LambdaToMethod cannot capture pattern variables. So the TransPatterns should
|
||||
* transform the pattern variables and symbols to normal variables and symbols.
|
||||
* @compile --enable-preview -source ${jdk.version} LambdaCannotCapturePatternVariables.java
|
||||
* @run main/othervm --enable-preview LambdaCannotCapturePatternVariables
|
||||
* @enablePreview
|
||||
*/
|
||||
|
||||
import java.util.function.Supplier;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue