LexicalError while parsing Java code aborts CPD run
A source code analyzer
Brought to you by:
adangel,
juansotuyo
Lexical error in file opensource/bad/Client.java at line 5, column 31. Encountered: "\ufffd" (65533), after : ""
at net.sourceforge.pmd.lang.java.ast.JavaParserTokenManager.getNextToken(JavaParserTokenManager.java:2263)
This is for running CPD over a java file that contains invalid characters in source code. It aborts the entire run of CPD, can this be made an option to skip over or the token be ignored?
This will be fixed with the next release.
There is a new command line option called "--skip-lexical-errors" for this case.