-
Bug
-
Resolution: Unresolved
-
Minor
-
None
When running coverage on a go code with two init functions in the same file (permitted by go, but then they have the same signature), the plugin crashes with the following stack trace :
org.jenkinsci.plugins.workflow.actions.ErrorAction$ErrorId: 4716e9d6-995e-4c9d-b816-9f9065e54c43 java.lang.IllegalArgumentException: There is already the same child [METHOD] init <0> with the name init in [CLASS] - <1, LINE: 0.00% (0/4)> at PluginClassLoader for coverage//edu.hm.hafner.coverage.Node.addChild(Node.java:178) at PluginClassLoader for coverage//edu.hm.hafner.coverage.Node.addChildNode(Node.java:948) at PluginClassLoader for coverage//edu.hm.hafner.coverage.Node.createMethodNode(Node.java:903) at PluginClassLoader for coverage//edu.hm.hafner.coverage.parser.CoberturaParser.createMethodNode(CoberturaParser.java:234) at PluginClassLoader for coverage//edu.hm.hafner.coverage.parser.CoberturaParser.createNode(CoberturaParser.java:222) at PluginClassLoader for coverage//edu.hm.hafner.coverage.parser.CoberturaParser.readClassOrMethod(CoberturaParser.java:164) at PluginClassLoader for coverage//edu.hm.hafner.coverage.parser.CoberturaParser.readClassOrMethod(CoberturaParser.java:195) at PluginClassLoader for coverage//edu.hm.hafner.coverage.parser.CoberturaParser.readPackage(CoberturaParser.java:133) at PluginClassLoader for coverage//edu.hm.hafner.coverage.parser.CoberturaParser.readModule(CoberturaParser.java:112) at PluginClassLoader for coverage//edu.hm.hafner.coverage.parser.CoberturaParser.parseReport(CoberturaParser.java:90) at PluginClassLoader for coverage//edu.hm.hafner.coverage.CoverageParser.parse(CoverageParser.java:81) at PluginClassLoader for coverage//io.jenkins.plugins.coverage.metrics.steps.CoverageReportScanner.processFile(CoverageReportScanner.java:63) at PluginClassLoader for plugin-util-api//io.jenkins.plugins.util.AgentFileVisitor.scanFiles(AgentFileVisitor.java:114) at PluginClassLoader for plugin-util-api//io.jenkins.plugins.util.AgentFileVisitor.invoke(AgentFileVisitor.java:93) at PluginClassLoader for plugin-util-api//io.jenkins.plugins.util.AgentFileVisitor.invoke(AgentFileVisitor.java:39) at Jenkins v2.479.2//hudson.FilePath$FileCallableWrapper.call(FilePath.java:3614) at hudson.remoting.UserRequest.perform(UserRequest.java:225) at hudson.remoting.UserRequest.perform(UserRequest.java:50) at hudson.remoting.Request$2.run(Request.java:391) at hudson.remoting.InterceptingExecutorService.lambda$wrap$0(InterceptingExecutorService.java:81) at java.base/java.util.concurrent.FutureTask.run(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor.runWorker(Unknown Source) at java.base/java.util.concurrent.ThreadPoolExecutor$Worker.run(Unknown Source) at hudson.remoting.Engine$1.lambda$newThread$0(Engine.java:140) at java.base/java.lang.Thread.run(Unknown Source)
- duplicates
-
JENKINS-72895 recordCoverage failed with java.lang.IllegalArgumentException: Cannot merge coverage information
-
- Reopened
-
- relates to
-
JENKINS-72271 There is already a child [METHOD] ... with the name ... in [CLASS] ...
-
- Resolved
-