Benedict created CASSANDRA-9209:
-----------------------------------
Summary: Add static analysis to report any AutoCloseable objects
that are not encapsulated in a try/finally block
Key: CASSANDRA-9209
URL: https://issues.apache.org/jira/browse/CASSANDRA-9209
Project: Cassandra
Issue Type: Improvement
Reporter: Benedict
Fix For: 3.0
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])
--
This message was sent by Atlassian JIRA
(v6.3.4#6332)