Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Eagerly warn about unclosed resources #21

Open
gaul opened this issue Feb 15, 2014 · 0 comments
Open

Eagerly warn about unclosed resources #21

gaul opened this issue Feb 15, 2014 · 0 comments

Comments

@gaul
Copy link
Collaborator

gaul commented Feb 15, 2014

JDBC lint could eagerly warn about unclosed by tracking them in the parent. For example, DataSource could collect all created Connections in a list, Connection.close would remove from this list, and DataSource.close could warn when the list contains any elements. We should also investigate using weak references/reference queues instead of finalization since the former is more reliable and would cooperate with this feature.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant