junit error in eclipse with java 1.7 and ant 1.9 -
i'm using ant run series of tests , generate html reports using junit. following error:
[junitreport] loading stylesheet jar:file:/c:/eclipse/plugins/org.apache.ant_1.8.4.v201303080030/lib/ant-junit.jar!/org/apache/tools/ant/taskdefs/optional/junit/xsl/junit-frames.xsl [junitreport] : error! first argument non-static java function 'replace' not valid object reference. [junitreport] : error! not compile stylesheet [junitreport] : fatal error! cannot convert data-type 'void' 'reference'. cause: cannot convert data-type 'void' 'reference'.
i've seen bug in other answers, pointed out bug introduced java 1.6. have following set up:
- java jdk: 1.7.0_55
- ant: 1.9.2
eclipse runs ant files it's own packaged version of ant unless tell otherwise. updated eclipse platform (and pre-packaged ant) , ran fine.
Comments
Post a Comment