Skip to content

Commit 27befc8

Browse files
violplayerSven Lamberti-Meng
andauthored
[Core] Use canonical file name to create FileOutputStream for plugins (#2482)
Co-authored-by: Sven Lamberti-Meng <[email protected]>
1 parent 65dfc97 commit 27befc8

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

core/src/main/java/io/cucumber/core/plugin/PluginFactory.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -234,7 +234,7 @@ private static FileOutputStream createFileOutputStream(File file) {
234234
}
235235

236236
try {
237-
return new FileOutputStream(file);
237+
return new FileOutputStream(canonicalFile);
238238
} catch (FileNotFoundException e) {
239239
// See: https://github.com/cucumber/cucumber-jvm/issues/2108
240240
throw new IllegalArgumentException(String.format("" +

0 commit comments

Comments
 (0)