apache / apache/jmeter

JSR / groovy get crazy when using ${__counter} in commented out line

Open
#5,706 2 comments 0 reactions 0 assignees View on GitHub
need info os: All P2
Dominant language
Java
Stars
9.5k
Forks
2.3k
Avg merge
1d 22h
Merged PRs (30d)
5

Description

**piotr.mirek** ([Bug 66265](https://bz.apache.org/bugzilla//show_bug.cgi?id=66265&redirect=false)):
When adding this line error, even it's commented out.

code used:

log.info("DEBUG: A: " + ${__threadNum} + "-" + vars.getIteration());
// log.info("DEBUG: B " + ${__threadNum} + "-" + ${__counter});

Is there any way to ignore commented lines to avoid confusion?

Created attachment [jmeter.bug.__coutner.JPG](https://apache.github.io/jmeter-bugzilla-attachments/65/66265/38390/jmeter.bug.__coutner.JPG): screenshot

screenshot

Severity: normal
OS: All

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.