CharacterLiteral.getCodePointValue: fix handling of surrogates

This commit is contained in:
Chris Smowton
2021-11-25 14:07:21 +00:00
parent 609d6011a2
commit db39c0b8be
4 changed files with 101 additions and 1 deletions

View File

@@ -0,0 +1,3 @@
lgtm,codescanning
* `CharacterLiteral`'s `getCodePointValue` predicate now returns the correct value for UTF-16 surrogates.
* The `RangeAnalysis` module and the `java/constant-comparison` queries no longer raise false alerts regarding comparisons with Unicode surrogate character literals.