We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 1628a00 commit c95eee8Copy full SHA for c95eee8
core/src/main/java/cucumber/runtime/Runtime.java
@@ -84,7 +84,10 @@ public World newWorld(Set<String> tags) {
84
// XXX: should this be ctor initialized?
85
public void addStepdefScanPath(String[] packages) {
86
for (String packageName : packages) {
87
- backends.addAll(Resources.instantiateSubclasses(Backend.class, "cucumber.runtime", packageName));
+ if(packageName.matches("^([a-z]\\w*\\.?)+$"))
88
+ backends.addAll(Resources.instantiateSubclasses(Backend.class, "cucumber.runtime", packageName));
89
+ else
90
+ throw new CucumberException("Additional package isn't valid: " + packageName);
91
}
92
93
0 commit comments