Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-11929

net.sourceforge.pmd.cpd.cppast.TokenMgrError: Lexical error in file

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Not A Defect
    • Icon: Major Major
    • dry-plugin

      We are using the Duplicate Code Scanner Plug-in / PMD's Copy Paste Detector (CPD) Simian version 2.21.

      a code block which contains backslashes like this:

      // 2.2.1.1.1.1.1.1 ) b1ThresholdCDMA2000 destParams->elem[i].reportConfig.i1.reportConfigInterRAT.triggerType.i1.event.eventId.i1.eventB1. \
      b1_Threshold.i1.b1_ThresholdCDMA2000 =
      srcParams->elem[i].reportConfig.u.reportConfigInterRAT.triggerType.u.event.eventId.u.eventB1. \
      b1Threshold.u.b1ThresholdCDMA2000;

      ------> Results in the parser choking like that:

      net.sourceforge.pmd.cpd.cppast.TokenMgrError: Lexical error in file /jenkins/workspace/cpd/src/enc_eRRC_mdf.cpp at line 275, column 139. Encountered: "
      " (92), after : ""
      at net.sourceforge.pmd.cpd.cppast.CPPParserTokenManager.getNextToken(CPPParserTokenManager.java:1655)
      at net.sourceforge.pmd.cpd.CPPTokenizer.tokenize(CPPTokenizer.java:29)
      at net.sourceforge.pmd.cpd.CPD.add(CPD.java:106)
      at net.sourceforge.pmd.cpd.CPD.add(CPD.java:72)
      at net.sourceforge.pmd.cpd.CPD.addDirectory(CPD.java:82)
      at net.sourceforge.pmd.cpd.CPD.addRecursively(CPD.java:67)
      at net.sourceforge.pmd.cpd.CPD.main(CPD.java:180)

            drulli Ulli Hafner
            w1ndowlicker Joachim Bauernberger
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved: