Details
-
Bug
-
Status: Resolved
-
Major
-
Resolution: Fixed
-
None
-
None
-
None
-
Reviewed
Description
Subtle problem in HBASE-15891:
try (A myA = new A(new B()))
An exception thrown between B starting to open an A finishing initialization may not result in B being closed. A safer syntax would be:
try(B myB = new B(); A myA = newA(myB))