Closed yurloc closed 6 months ago
Fixed by #5913.
Context: Character.valueOf('\u0000'.charAt(0))
.
Before the fix:
'\u0000'.charAt
is incorrectly tokenized as RHS_CHUNK
and so normalizeString
is not applied.
After the fix:
'\u0000'.charAt
is correctly tokenized as RHS_STRING_LISTERAL
and so it is normalized to "\u0000".
Parent issue
5678
Failing tests
org.drools.traits.compiler.factmodel.traits.TraitTest#traitMethodsWithObjects
Notes
The compilation error seems valid. The question is why the old parser accepts this.
Rule code snippet
Error output