8068948: Update java.base module to use new try-with-resources statement

Reviewed-by: alanb, igerasim
2 files changed