test/langtools/tools/javac/diags/examples/IllegalRefToRestrictedType.java
changeset 59021 cfc7bb9a5a92
parent 55306 ea43db53de91
--- a/test/langtools/tools/javac/diags/examples/IllegalRefToRestrictedType.java	Mon Nov 11 17:43:10 2019 -0800
+++ b/test/langtools/tools/javac/diags/examples/IllegalRefToRestrictedType.java	Tue Nov 12 06:32:13 2019 +0000
@@ -22,7 +22,8 @@
  */
 
 // key: compiler.warn.illegal.ref.to.restricted.type
-// key: compiler.warn.restricted.type.not.allowed.preview
+// key: compiler.warn.restricted.type.not.allowed
+// options: -Xlint:-options -source 13
 
 class IllegalRefToVarType {
     yield list() { return null; }