JavaNCSS
  1. JavaNCSS
  2. JAVANCSS-18

Javancss ant task failes with no such method

    Details

    • Type: Bug Bug
    • Status: Closed Closed
    • Priority: Major Major
    • Resolution: Fixed
    • Affects Version/s: 30.51
    • Fix Version/s: 32.53
    • Labels:
      None
    • Environment:
      windows xp
      java 1.6_13
      ant 1.7.1
    • Number of attachments :
      0

      Description

      java.lang.NoSuchMethodError: javancss.Javancss.<init>(Ljava/util/Vector;)V
      at javancss.JavancssAntTask.getJavaNcss(JavancssAntTask.java:480)
      at javancss.JavancssAntTask.functionThresholdsExceeded(JavancssAntTask.java:636)
      at javancss.JavancssAntTask.thresholdsExceeded(JavancssAntTask.java:359)
      at javancss.JavancssAntTask.execute(JavancssAntTask.java:305)

      such constructor does not exist any more javancss.Javancss

        Activity

        Hide
        Philip Johnson added a comment -

        I just upgraded to 30.51 and spent an hour trying to figure out if my environment was broken or was it javancss. The "vanilla" invocations of javancss in its own build.xml do not cause this error:

        <target name="javancss" depends="taskdef">
        <javancss srcdir="src"
        includes="*/.java"
        generateReport="yes"/>
        </target>

        But you can reproduce it by adding a single attribute:

        <target name="javancss" depends="taskdef">
        <javancss srcdir="src"
        ccnPerFuncMax="10"
        includes="*/.java"
        generateReport="yes"/>
        </target>

        Show
        Philip Johnson added a comment - I just upgraded to 30.51 and spent an hour trying to figure out if my environment was broken or was it javancss. The "vanilla" invocations of javancss in its own build.xml do not cause this error: <target name="javancss" depends="taskdef"> <javancss srcdir="src" includes="* / .java" generateReport="yes"/> </target> But you can reproduce it by adding a single attribute: <target name="javancss" depends="taskdef"> <javancss srcdir="src" ccnPerFuncMax="10" includes="* / .java" generateReport="yes"/> </target>
        Hide
        Herve Boutemy added a comment -

        fixed in r155
        now JavaNCSS Ant Task is directly integrated in javancss.jar, javancssanttask.jar has been removed

        Show
        Herve Boutemy added a comment - fixed in r155 now JavaNCSS Ant Task is directly integrated in javancss.jar, javancssanttask.jar has been removed

          People

          • Assignee:
            Herve Boutemy
            Reporter:
            Bogdan
          • Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

            Dates

            • Created:
              Updated:
              Resolved:

              Time Tracking

              Estimated:
              Original Estimate - 1 hour
              1h
              Remaining:
              Remaining Estimate - 1 hour
              1h
              Logged:
              Time Spent - Not Specified
              Not Specified