[foreign-memaccess+abi] Integrated: Avoid using StandardCharset in Java code

Per Minborg pminborg at openjdk.org
Tue Aug 15 09:56:32 UTC 2023


On Mon, 14 Aug 2023 11:29:54 GMT, Per Minborg <pminborg at openjdk.org> wrote:

> According to a comment in `java.nio.charset.StandardCharsets`, the use of this class should be avoided from elsewhere in the `jdk.base` module. This PR proposes removing all such direct use of said class in Java code (but not in JavaDocs).
> 
> 
> public final class StandardCharsets {
> 
>     // To avoid accidental eager initialization of often unused Charsets
>     // from happening while the VM is booting up, which may delay
>     // initialization of VM components, we should generally avoid depending
>     // on this class from elsewhere in java.base.

This pull request has now been integrated.

Changeset: 3d8ef795
Author:    Per Minborg <pminborg at openjdk.org>
URL:       https://git.openjdk.org/panama-foreign/commit/3d8ef7954a36322c9eaf56e314a46c82526892ef
Stats:     17 lines in 3 files changed: 7 ins; 1 del; 9 mod

Avoid using StandardCharset in Java code

Reviewed-by: mcimadamore

-------------

PR: https://git.openjdk.org/panama-foreign/pull/864


More information about the panama-dev mailing list