You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@cassandra.apache.org by "Maxim Muzafarov (Jira)" <ji...@apache.org> on 2022/12/04 22:46:00 UTC

[jira] [Updated] (CASSANDRA-9209) Add static analysis to report any AutoCloseable objects that are not encapsulated in a try/finally block

     [ https://issues.apache.org/jira/browse/CASSANDRA-9209?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]

Maxim Muzafarov updated CASSANDRA-9209:
---------------------------------------
    Epic Link: CASSANDRA-18090

> 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
>          Components: Legacy/Core, Legacy/Testing
>            Reporter: Benedict Elliott Smith
>            Priority: Normal
>             Fix For: 4.x
>
>
> 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
(v8.20.10#820010)

---------------------------------------------------------------------
To unsubscribe, e-mail: commits-unsubscribe@cassandra.apache.org
For additional commands, e-mail: commits-help@cassandra.apache.org