mirror of
https://github.com/openjdk/jdk.git
synced 2025-08-27 23:04:50 +02:00
8246704: --release => \"unknown enum constant PreviewFeature$Feature.TEXT_BLOCKS\"
Use a synthetic annotation instead of inaccessible jdk.internal.PreviewFeature in ct.sym, and avoid resolving that annotation, to prevent errors being printed for the inaccessible types. Reviewed-by: jlaskey
This commit is contained in:
parent
42d3bad0b1
commit
31c511e6a5
5 changed files with 38 additions and 1 deletions
|
@ -0,0 +1,15 @@
|
|||
/**
|
||||
* @test /nodynamiccopyright/
|
||||
* @bug 8246704
|
||||
* @summary Verify preview APIs are reported correctly when using --release.
|
||||
* @compile/fail/ref=PreviewAPIsWithRelease.out -XDrawDiagnostics --release 14 PreviewAPIsWithRelease.java
|
||||
*/
|
||||
|
||||
import com.sun.source.tree.Tree.Kind;
|
||||
|
||||
public class PreviewAPIsWithRelease {
|
||||
void test() {
|
||||
"".stripIndent();
|
||||
Kind r = Kind.RECORD;
|
||||
}
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue