typo in JLS 20

Pravin pravin at zensoftech.co.in
Tue Nov 26 01:00:14 UTC 2024


Thanks Gavin.

Yes it makes sense, to use char sequence or character sequence, since it is inclusive of char[] and the java.text.CharacterSequence also.

I suggest that the font for char in the text needs to be updated as normal text since here it is not used as a keyword of java.

Also some place to mention about the coverage of char sequence or character sequence.



Thanks and Regards.

Pravin







---- On Mon, 25 Nov 2024 22:38:33 +0530 Gavin Bierman <gavin.bierman at oracle.com> wrote ---



Thank you for your suggestion.
 
On 23 Jun 2023, at 10:37, Pravin <mailto:pravin at zensoftech.co.in> wrote:


Hello sir/madam,



In the last para on page 44. the following sentence



Supplementary characters must be represented

either as a surrogate pair within a char sequence, or as an integer, depending on

the API they are used with.



may be replaced with



Supplementary characters must be represented

either as a surrogate pair within a java.lang.CharSequence, or as an integer, depending on

the API they are used with.



regards,

Pravin








You may find this article interesting: https://www.oracle.com/technical-resources/articles/javase/supplementary.html



You’ll find the following explanation:



This article also uses the terms  character
 sequence or  char sequence  in
 many places to summarize all the containers of character sequences that the Java 2 Platform knows:  char[],
 implementations of  java.lang.CharSequence (such
 as the  String class),
 and implementations of  java.text.CharacterIterator.





I hope this explains the JLS terminology.



Many thanks,

Gavin
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://mail.openjdk.org/pipermail/jls-jvms-spec-comments/attachments/20241126/2c59b0fe/attachment-0001.htm>


More information about the jls-jvms-spec-comments mailing list