langtools/src/share/classes/com/sun/tools/javac/comp/Check.java
changeset 23111 ef4562cfb234
parent 22688 304eb013ac63
child 23796 4c722b177a8f
--- a/langtools/src/share/classes/com/sun/tools/javac/comp/Check.java	Thu Feb 06 18:54:13 2014 -0800
+++ b/langtools/src/share/classes/com/sun/tools/javac/comp/Check.java	Fri Feb 07 21:43:33 2014 +0100
@@ -1705,7 +1705,12 @@
 
         // Warn if a deprecated method overridden by a non-deprecated one.
         if (!isDeprecatedOverrideIgnorable(other, origin)) {
-            checkDeprecated(TreeInfo.diagnosticPositionFor(m, tree), m, other);
+            Lint prevLint = setLint(lint.augment(m));
+            try {
+                checkDeprecated(TreeInfo.diagnosticPositionFor(m, tree), m, other);
+            } finally {
+                setLint(prevLint);
+            }
         }
     }
     // where