On Mon, 10 Jun 2024 15:12:59 GMT, Per Minborg <pminb...@openjdk.org> wrote:

> > Note that `asSlice` methods also lacks a similar guarantee on read-only 
> > (but the impl works fine there)
> 
> Even though not mentioned in the original issue, we could add documentation 
> for this here as well. Or maybe via 
> https://bugs.openjdk.org/browse/JDK-8333886 ?

Or a new issue - I'm fine with both approaches. Whatever requires less work. 
Since you are already adding these "if this segment is read-only...  ", maybe 
it would be simpler to review as part of this PR?

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

PR Comment: https://git.openjdk.org/jdk/pull/19629#issuecomment-2158641151

Reply via email to