[concurrency-interest] JLS 17.5

Remi Forax forax at univ-mlv.fr
Fri Feb 28 05:03:46 EST 2020


I'm sure everybody has mentally replaced "offset" by "coder".

https://hg.openjdk.java.net/jdk/jdk/file/27e301f90b3a/src/java.base/share/classes/java/lang/String.java#l163

Rémi

----- Mail original -----
> De: "concurrency-interest" <concurrency-interest at cs.oswego.edu>
> À: "Dr Heinz M. Kabutz" <heinz at javaspecialists.eu>, "concurrency-interest" <concurrency-interest at cs.oswego.edu>
> Envoyé: Vendredi 28 Février 2020 10:38:50
> Objet: Re: [concurrency-interest] JLS 17.5

> On 2/26/20 1:58 PM, Dr Heinz M. Kabutz via Concurrency-interest wrote:
>> 
>> It assumes that String has an "offset" field and when we make a
>> substring.  However, this was changed in Java 7 already, thus the JLS
>> should be updated.
> 
> Isn't this just a "for example," though? The JLS doesn't specify how a
> String is implemented.
> 
> --
> Andrew Haley  (he/him)
> Java Platform Lead Engineer
> Red Hat UK Ltd. <https://www.redhat.com>
> https://keybase.io/andrewhaley
> EAC8 43EB D3EF DB98 CC77 2FAD A5CD 6035 332F A671


More information about the Concurrency-interest mailing list