RFR: 8295857: Clarify that cleanup code can be skipped when the JVM terminates (e.g. when calling halt())
Brent Christian
bchristi at openjdk.org
Thu Nov 17 20:29:22 UTC 2022
On Thu, 17 Nov 2022 20:08:27 GMT, Lance Andersen <lancea at openjdk.org> wrote:
>> src/java.base/share/classes/java/lang/Runtime.java line 95:
>>
>>> 93: * threads' current methods do not complete normally or abruptly.
>>> 94: * {@linkplain Thread.UncaughtExceptionHandler Uncaught exception handlers} are not run,
>>> 95: * no {@code finally} clause of any method is executed, and try-with-resource
>>
>> `try-with-resource` or `try-with-resources`?
>
>> `try-with-resource` or `try-with-resources`?
>
> Agree should be [try-with-resources](https://docs.oracle.com/javase/8/docs/technotes/guides/language/try-with-resources.html)
Yep
-------------
PR: https://git.openjdk.org/jdk/pull/11218
More information about the core-libs-dev
mailing list