Proposal: Automatic Resource Management
Author | Josh Bloch |
Date of Original Proposal | February 27, 2009 |
Text of Proposal | embedded in mail (see below) |
Summary
The automatic resource management statement is a form of the try statement that declares one or more resources. The scope of these resource declarations is limited to the statement. When the statement completes, whether normally or abruptly, all of its resources are closed automatically.
Relevant Mail Discussion Threads
- Original proposal: http://mail.openjdk.java.net/pipermail/coin-dev/2009-February/000011.html
- Follow-up discussion (probably incomplete)
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000042.html
- alternative "simple resource cleanup" proposal: http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000071.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000124.html
- updated version of the proposal: http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000128.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000263.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000309.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000341.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000348.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000496.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000684.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000684.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000689.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000683.html
- http://mail.openjdk.java.net/pipermail/coin-dev/2009-March/000699.html
Discussion
Extensive discussion followed on the mailing list; please follow the threads listed above.
Overview
Content Tools
ThemeBuilder