标签:class trycatch des ble sse ecif ring 语法 row
Optionally replace a try statement with the desugaring of a try-with-resources statement. The canonical desugaring of
try ResourceSpecification Block
is
{ final VariableModifiers_minus_final R #resource = Expression; Throwable #primaryException = null; try ResourceSpecificationtail Block catch (Throwable #t) { #primaryException = t; throw #t; } finally { if (#resource != null) { if (#primaryException != null) { try { #resource.close(); } catch(Throwable #suppressedException) { #primaryException.addSuppressed(#suppressedException); } } else { #resource.close(); } } }
标签:class trycatch des ble sse ecif ring 语法 row
原文地址:http://www.cnblogs.com/extjs4/p/7395704.html