Menu

#1178 LexicalError while parsing Java code aborts CPD run

PMD-5.1.1
closed
None
CPD
3-Major
Bug
5.1.0
2014-04-27
2014-03-31
No

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?

Discussion

  • Andreas Dangel

    Andreas Dangel - 2014-04-03
    • status: open --> in-progress
    • assigned_to: Andreas Dangel
    • Milestone: New Tickets --> PMD-Next
     
  • Andreas Dangel

    Andreas Dangel - 2014-04-03

    This will be fixed with the next release.

    There is a new command line option called "--skip-lexical-errors" for this case.

     
  • Andreas Dangel

    Andreas Dangel - 2014-04-03
    • status: in-progress --> closed
     

Log in to post a comment.