Java: Describe StringLiteral.getValue() behavior for unpaired surrogates

This commit is contained in:
Marcono1234
2021-10-29 14:53:13 +02:00
parent bfb9577d15
commit e1516b4e9d

View File

@@ -734,6 +734,9 @@ class StringLiteral extends Literal, @stringliteral {
/**
* Gets the string represented by this string literal, that is, the content
* of the literal without enclosing quotes and with escape sequences translated.
*
* Unpaired Unicode surrogate characters (U+D800 to U+DFFF) are replaced with the
* replacement character U+FFFD.
*/
override string getValue() { result = super.getValue() }