JDK-6980019 : Finish rename of ARM -> try-with-resources in jdk repository
  • Type: Bug
  • Component: core-libs
  • Sub-Component: java.lang
  • Affected Version: 7
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-08-25
  • Updated: 2011-05-17
  • Resolved: 2011-05-17
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 7
7 b112Fixed
Related Reports
Relates :  
Relates :  
Description
The initial moniker for the try-with-resources language feature (and its supporting APIs) was "ARM" for "automatic resource management."  Since the current name is try-with-resources, for consistency the existiong "automatic resource management" uses should be changed.

Comments
SUGGESTED FIX # HG changeset patch # User darcy # Date 1282775745 25200 # Node ID 93c49f01a4c2b95ad88827ede1505881ddbdeb44 # Parent 732f59013e78f65e8c274cb2a7732d7c40bf560b 6980019: Finish rename of ARM -> try-with-resources in jdk repository Reviewed-by: jjg --- a/src/share/classes/java/lang/AutoCloseable.java Mon Aug 23 10:47:42 2010 -0700 +++ b/src/share/classes/java/lang/AutoCloseable.java Wed Aug 25 15:35:45 2010 -0700 @@ -34,8 +34,8 @@ public interface AutoCloseable { public interface AutoCloseable { /** * Close this resource, relinquishing any underlying resources. - * This method is invoked automatically by the automatic resource - * management block construct. + * This method is invoked automatically by the {@code + * try}-with-resources statement. * * <p>Classes implementing this method are strongly encouraged to * be declared to throw more specific exceptions (or no exception --- a/src/share/classes/java/lang/Throwable.java Mon Aug 23 10:47:42 2010 -0700 +++ b/src/share/classes/java/lang/Throwable.java Wed Aug 25 15:35:45 2010 -0700 @@ -498,8 +498,8 @@ public class Throwable implements Serial * } * </pre> * As of release 7, the platform supports the notion of - * <i>suppressed exceptions</i> (in conjunction with automatic - * resource management blocks). Any exceptions that were + * <i>suppressed exceptions</i> (in conjunction with the {@code + * try}-with-resources statement). Any exceptions that were * suppressed in order to deliver an exception are printed out * beneath the stack trace. The format of this information * depends on the implementation, but the following example may be @@ -805,7 +805,7 @@ public class Throwable implements Serial /** * Adds the specified exception to the list of exceptions that - * were suppressed, typically by the automatic resource management + * were suppressed, typically by the {@code try}-with-resources * statement, in order to deliver this exception. * * <p>Note that when one exception {@linkplain @@ -839,7 +839,7 @@ public class Throwable implements Serial /** * Returns an array containing all of the exceptions that were - * suppressed, typically by the automatic resource management + * suppressed, typically by the {@code try}-with-resources * statement, in order to deliver this exception. * * @return an array containing all of the exceptions that were
25-08-2010

PUBLIC COMMENTS See http://hg.openjdk.java.net/jdk7/tl/jdk/rev/93c49f01a4c2
25-08-2010

EVALUATION Yes.
25-08-2010