Uploaded image for project: 'Cassandra'
  1. Cassandra
  2. CASSANDRA-9209

Add static analysis to report any AutoCloseable objects that are not encapsulated in a try/finally block

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Open
    • Normal
    • Resolution: Unresolved
    • 5.x
    • Legacy/Core, Legacy/Testing
    • None

    Description

      Shouldn't be too tricky, and would help us potentially avoid a number of bugs. A follow up would be to enable optional ref counting (or at least leak detection) at run time for AutoCloseable objects, possibly only for those we care about, but also possible via bytecode weaving so that we could capture all of them without question.

      (/cc tjake)

      Attachments

        Activity

          People

            Unassigned Unassigned
            benedict Benedict Elliott Smith
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

            Dates

              Created:
              Updated: