dkowis/cucumber-jvm — comment on commit 956b338e38cc90b923710a1935e71961dc8c0ab9
File: jruby/src/main/resources/cucumber/runtime/jruby/dsl.rb line 116
By aslakhellesoy:

If there are more than 1 matching stepdefs this will mask that problem (you should be getting an Ambiguous error).

Instead you should be using the `World.runStep` method. For the `uri` arg you should use `__FILE__`. You can create a new `Step` instance to pass in for the `step` argument.

The last 2 arguments are a little more tricky. You need a `Reporter` and a `Locale`. The `Locale` comes from the feature file, and the `Reporter` from the runtime.

This means we need to pass them around. I think we may have to change the signature of `StepDefinition.execute(Object[] args)` to `StepDefinition.execute(Reporter reporter, Locale locale, Object[] args)` to achieve that. Changing the API means updating all other modules too.

Are you up for that task?