Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.
Comment: added cwe-754

...

MITRE CWE

CWE-248, Uncaught Exception
CWE-460
, Improper Cleanup on Thrown Exception
CWE-584, Return inside finally Block
CWE-705, Incorrect Control Flow Scoping
CWE-754, Improper Check for Unusual or Exceptional Conditions 

Bibliography

[Bloch 2005]

Puzzle 41, "Field and Stream"

[Chess 2007]

Section 8.3, "Preventing Resource Leaks (Java)"

[Harold 1999]

 

[J2SE 2011]

The try-with-resources Statement

...