vlsi opened a new pull request, #6889: URL: https://github.com/apache/jmeter/pull/6889
A parameterized test with JUnit's default display name is reported with argument values only, such as `[1] "simple_name", "simple_name"`, so a failing case does not say which parameter had which value. JUnit reads the names through `java.lang.reflect.Parameter`, which has them only when the class file carries the `MethodParameters` attribute. This compiles Java with `-parameters` and Kotlin with `javaParameters = true`, so the same case of `ArgumentTest` is reported as `[1] name = "simple_name", expectedName = "simple_name"`, and a Kotlin case of `ConvertersTest` as `[1] case = NumberCase(...)` instead of `[1] NumberCase(...)`. The flag applies to main classes too: it adds the `MethodParameters` attribute and changes no bytecode or signature, and no JMeter code reads parameter names through reflection (`git grep` for `java.lang.reflect.Parameter`, `isNamePresent`, and `ParameterNamesModule` finds nothing). 🤖 Generated with [Claude Code](https://claude.com/claude-code) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: [email protected] For queries about this service, please contact Infrastructure at: [email protected]
