On Wed, 24 Jun 2026 16:23:55 GMT, April Ivy <[email protected]> wrote:
> As noted in https://bugs.openjdk.org/browse/JDK-8365887, the comment in > `String::decode` still referred to the old defensive copy / security manager > optimization even though that path has been removed. > > This updates the comment to describe the current shape of the method: a > short-lived `CharsetDecoder` is created for this decode path, while the > `ArrayDecoder` fast paths decode directly from arrays where possible. > > --------- > - [x] I confirm that I make this contribution in accordance with the [OpenJDK > Interim AI Policy](https://openjdk.org/legal/ai). This pull request has now been integrated. Changeset: 38ee41be Author: April Ivy <[email protected]> Committer: SendaoYan <[email protected]> URL: https://git.openjdk.org/jdk/commit/38ee41bee390e3d4aaa57cc090f7956cf8b9fe8b Stats: 8 lines in 1 file changed: 0 ins; 8 del; 0 mod 8365887: Outdated comments in String::decode Reviewed-by: liach, sherman ------------- PR: https://git.openjdk.org/jdk/pull/31661
