Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8320805

JFR: Create view for deprecated methods

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 22
    • None
    • hotspot
    • None
    • jfr
    • b27

      The jdeprscan tool can list where deprecated elements are referenced, for example:

      $ jdeprscan J2Ddemo.jar
      Jar file J2Ddemo.jar:
      class java2d/Tools uses deprecated class java/security/AccessControlException (forRemoval=true)

      This doesn't work in cases where methods are invoked by reflection and it may report false positives. For example, the above issue only happens if you get an AccessControlException when doing a PrintJob in an Applet.

      We should provide a 'jfr view' that can list deprecated calls discovered during runtime.

            egahlin Erik Gahlin
            egahlin Erik Gahlin
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: