Details

    • Type: Sub-task
    • Status: Open
    • Priority: P3
    • Resolution: Unresolved
    • Affects Version/s: None
    • Fix Version/s: tbd
    • Component/s: core-libs
    • Labels:

      Description

      Given the output of the deprecation scanner, implement an agent that instruments the application and determines whether it uses any deprecated language elements. For a deprecated class/interface/enum type, a significant event might be the loading of that type. For a method or constructor, a significant event would be the calling of that method. (Not sure how it would handle field access.)

      Initial handling of a significant event would simply be logging a message to stderr or perhaps to a file. More sophisticated logging, filtering etc. is TBD.

      Need to determine whether a call to a deprecated method is logged once or every time it's called. Once might seem sufficient, but if there are multiple calls from different locations, the call stack might need to be recorded.

      Need to distinguish internal calls to a deprecated method from external calls. "Internal" should probably be the same, or at least very similar to, the JLS definition of when warnings are issued for use of a deprecated element. That is, a warning is not issued if the use of a deprecated element is within the same top-level class as the deprecated element.

        Attachments

          Activity

            People

            • Assignee:
              smarks Stuart Marks
              Reporter:
              smarks Stuart Marks
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:

                Time Tracking

                Estimated:
                Original Estimate - Not Specified
                Not Specified
                Remaining:
                Remaining Estimate - 3 weeks
                3w
                Logged:
                Time Spent - 0 minutes
                0m