I thing that the structure of "4.3.3 The Class String" paragraph should be slightly different. Small "Java Language Specification" improvement.
Dmitri Cerkas
dmitricerkas at yahoo.com
Mon Nov 7 08:17:20 UTC 2022
Hello JLS Team,
I thing that the content of "4.3.3 The Class String" paragraph should be the following:
"Instances of class String represent sequences of Unicode code points.
String literals (§3.10.5) and text blocks (§3.10.6) are references to instances of class String.
A String object has a constant (unchanging) value.
The string concatenation operator + (§15.18.1) implicitly creates a new String object when the result is not a constant expression (§15.29).
"With that new structure of "4.3.3 The Class String" we have the following linked sequence of information:
1) sequences of Unicode code points2) Instances of class String represent sequences of "1)"3) String literals (§3.10.5) and text blocks (§3.10.6) are references to "2)"
and then we speak about unchanging and changing values of the String objects:4) A String object has a constant (unchanging) value.The string concatenation operator + (§15.18.1) implicitly creates a new String object when the result is not a constant expression (§15.29).
I think it make more sense.
Thank you very much and have a nice day,Dmitri.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jls-jvms-spec-comments/attachments/20221107/8776d19d/attachment-0001.htm>
More information about the jls-jvms-spec-comments
mailing list