Skip to content

Commit 56a2af6

Browse files
committed
[JDK-8353224] Handle unix line endings on cygwin.
PullRequest: graal/20437
2 parents d594773 + 40396ad commit 56a2af6

File tree

1 file changed

+1
-1
lines changed
  • compiler/src/jdk.graal.compiler.processor/src/jdk/graal/compiler/options/processor

1 file changed

+1
-1
lines changed

compiler/src/jdk.graal.compiler.processor/src/jdk/graal/compiler/options/processor/OptionProcessor.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -201,7 +201,7 @@ private void processElement(Element element, OptionsDeclarer optionsDeclarer) {
201201
}
202202
try (InputStream in = file.openInputStream()) {
203203
help = new String(in.readAllBytes(), StandardCharsets.UTF_8);
204-
helpLines = List.of(help.split(System.lineSeparator()));
204+
helpLines = List.of(help.split("\\r?\\n"));
205205
}
206206
} catch (IOException e) {
207207
String msg = String.format("Error reading %s containing the help text for option field: %s", path, e);

0 commit comments

Comments
 (0)