On Fri, 29 Nov 2024 12:44:53 GMT, Maurizio Cimadamore <mcimadam...@openjdk.org> wrote:
>> Per Minborg has updated the pull request incrementally with one additional >> commit since the last revision: >> >> Fix imports > > test/jdk/java/foreign/TestStringEncoding.java line 2: > >> 1: /* >> 2: * Copyright (c) 2021, 2024, Oracle and/or its affiliates. All rights >> reserved. > > Do we have tests to check that we don't read too much? E.g. something that > would trigger the problem that this PR is trying to fix? I've added a test that checks odd bytes at the end are handled correctly. ------------- PR Review Comment: https://git.openjdk.org/jdk/pull/22451#discussion_r1865684854