8161376: Introduce -Xlint:exports
Summary: Adding -Xlint:exports, currently not doing anything. Functionality will be added separatelly under JDK-8153362.
Reviewed-by: jjg
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java Fri Sep 02 05:43:54 2016 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/code/Lint.java Tue Sep 06 12:51:40 2016 +0200
@@ -166,6 +166,11 @@
EMPTY("empty"),
/**
+ * Warn about issues regarding module exports.
+ */
+ EXPORTS("exports"),
+
+ /**
* Warn about falling through from one case of a switch statement to the next.
*/
FALLTHROUGH("fallthrough"),
--- a/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/javac.properties Fri Sep 02 05:43:54 2016 -0700
+++ b/langtools/src/jdk.compiler/share/classes/com/sun/tools/javac/resources/javac.properties Tue Sep 06 12:51:40 2016 +0200
@@ -192,6 +192,9 @@
javac.opt.Xlint.desc.empty=\
Warn about empty statement after if.
+javac.opt.Xlint.desc.exports=\
+ Warn about issues regarding module exports.
+
javac.opt.Xlint.desc.fallthrough=\
Warn about falling through from one case of a switch statement to the next.