8226585: Improve javac messages for using a preview API

Avoiding deprecation for removal for APIs associated with preview features, the features are marked with an annotation, and errors/warnings are produced for them based on the annotation.

Co-authored-by: Joe Darcy <joe.darcy@oracle.com>
Reviewed-by: erikj, mcimadamore, alanb
This commit is contained in:
Jan Lahoda 2019-10-21 15:38:26 +02:00
parent f771978f53
commit a1894385b3
43 changed files with 794 additions and 166 deletions

View file

@ -135,7 +135,8 @@ module java.base {
exports com.sun.security.ntlm to
java.security.sasl;
exports jdk.internal to
jdk.jfr;
jdk.jfr,
jdk.compiler;
exports jdk.internal.access to
java.desktop,
java.logging,