Hello,
As part of deprecating Class.newInstance (JDK-6850612), the client team
has requested to not @SuppressWarnings the uses of Class.newIntance in
the java.desktop module, but rather to let the client team perform a
fuller update to avoid the deprecated coding pattern (JDK-8155874).
Since the java.desktop module is (once again) compiled with warning as
errors, to allow the deprecation of Class.newInstance to proceed, the
java.desktop module must temporarily have deprecation warnings be
disabled as errors.
Please review the patch below which does this.
Thanks,
-Joe
--- a/make/CompileJavaModules.gmk Mon May 02 17:54:37 2016 +0200
+++ b/make/CompileJavaModules.gmk Mon May 02 17:11:22 2016 -0700
@@ -99,7 +99,7 @@
################################################################################
java.desktop_ADD_JAVAC_FLAGS := -Xdoclint:all/protected,-reference \
- '-Xdoclint/package:java.*,javax.*'
+ '-Xdoclint/package:java.*,javax.*' -Xlint:-deprecation
java.desktop_COPY := .gif .png .wav .txt .xml .css .pf
java.desktop_CLEAN := iio-plugin.properties cursors.properties