On Fri, 16 Oct 2026 14:41:24 GMT, Per Minborg <[email protected]> wrote:
> This PR adds a check so that out-of-size segments throw UOE when converted to > a byte buffer. > > --------- > - [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: 2362b28b Author: Per Minborg <[email protected]> URL: https://git.openjdk.org/jdk/commit/2362b28b9442da857f7c92663b0f087678c75232 Stats: 25 lines in 2 files changed: 15 ins; 0 del; 10 mod 8392363: MemorySegment.asByteBuffer() throws IllegalStateException instead of the documented UnsupportedOperationException Reviewed-by: jvernee ------------- PR: https://git.openjdk.org/jdk/pull/33412
