Skip to content

[apex] Token recognition errors for string containing unicode escape sequence  #5333

@adangel

Description

@adangel

Affects PMD Version: 7.7.0

Description:

When running pmd check on Apex source code, that contains a unicode escape sequence, the following might be printed on stderr:

line 1:0 token recognition error at: ''Fran\u00E'
line 1:14 token recognition error at: '''

Sample Apex Code:

class MyClass {
    String s = 'Fran\u00E7ois';
}

Root cause: apex-dev-tools/apex-parser#55

Metadata

Metadata

Assignees

No one assigned

    Labels

    a:bugPMD crashes or fails to analyse a file.

    Type

    No type

    Projects

    No projects

    Milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions