JDK-6967065 : add -Xlint warning category for Automatic Resource Management (ARM)
  • Type: Bug
  • Component: tools
  • Sub-Component: javac
  • Affected Version: 7
  • Priority: P3
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2010-07-06
  • Updated: 2022-05-09
  • Resolved: 2011-03-07
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 b105Fixed
Related Reports
Relates :  
Relates :  
Relates :  
Relates :  
Description
When the Automatic Resource Management (ARM) feature is introduced into the language, it would be helpful to have lint warnings to alert the programmer to various conditions, such as explictly calling close or a resource or not referencing a named resource in an ARM block.  These should be controled under a -Xlint:arm javac flag.

Comments
EVALUATION A fine idea.
06-07-2010