JDK-8161889 : (jdeprscan) don't warn for uses that occur within the same top-level type as deprecation
  • Type: Sub-task
  • Component: tools
  • Priority: P4
  • Status: Open
  • Resolution: Unresolved
  • Submitted: 2016-07-20
  • Updated: 2018-09-11
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
Other
tbdUnresolved
Description
JLS 9.6.4.6 says that no warning is emitted if the use of a deprecated element occurs within the same top-level type as that element.

JDeprScan doesn't currently do this analysis. It seems to have enough information to do so, and this would cut down on some noise. A test case should be added for this as well.