JavaNCSS

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
  • Component/s: None
  • 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

Vote (0)
Watch (0)

Dates

  • Created:
    Updated:
    Resolved:

Time Tracking

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