File tree Expand file tree Collapse file tree 2 files changed +7
-3
lines changed
src/main/java/com/pdsl/gherkin Expand file tree Collapse file tree 2 files changed +7
-3
lines changed Original file line number Diff line number Diff line change 55
66 <groupId >com.google.pdsl</groupId >
77 <artifactId >pdsl</artifactId >
8- <version >1.7.9 -SNAPSHOT</version >
8+ <version >1.7.10 -SNAPSHOT</version >
99
1010 <name >pdsl</name >
1111 <url >http://www.github.com/google/polymorphicDSL</url >
Original file line number Diff line number Diff line change @@ -127,11 +127,15 @@ private List<PickleJar.PickleJarScenario> convertScenariosToPickleJarScenarios(L
127127 if (table .getTags ().isPresent ()) {
128128 tableTags .addAll (processTags (table .getTags ().get ()));
129129 }
130- builder .withTags (processTags (tableTags ));
130+ // Use a deep copy.
131+ // Otherwise if the observer adds additional tags to the set they
132+ // will be added for ALL of the tabular scenarios
133+ Set <String > potentiallyMutatedTags = new HashSet <>(tableTags );
131134 // notifying observers
132135 notifyObservers (
133136 scenario .getTitle ().orElseThrow ().getStringWithSubstitutions (substitutions ),
134- substitutedSteps , tableTags , substitutions );
137+ substitutedSteps , potentiallyMutatedTags , substitutions );
138+ builder .withTags (processTags (potentiallyMutatedTags ));
135139 pickleJarScenarios .add (builder .build ());
136140 }
137141 }
You can’t perform that action at this time.
0 commit comments