mirror of
https://github.com/openjdk/jdk.git
synced 2025-09-15 16:44:36 +02:00
8006879: Detection of windows in sjavac fails
Reviewed-by: jjg
This commit is contained in:
parent
495e78ce52
commit
31ad82b41b
1 changed files with 3 additions and 2 deletions
|
@ -1,5 +1,5 @@
|
|||
/*
|
||||
* Copyright (c) 2012, Oracle and/or its affiliates. All rights reserved.
|
||||
* Copyright (c) 2012, 2013, Oracle and/or its affiliates. All rights reserved.
|
||||
* DO NOT ALTER OR REMOVE COPYRIGHT NOTICES OR THIS FILE HEADER.
|
||||
*
|
||||
* This code is free software; you can redistribute it and/or modify it
|
||||
|
@ -255,7 +255,8 @@ public class CompilerThread implements Runnable {
|
|||
}
|
||||
// Load visible sources
|
||||
Set<URI> visibleSources = new HashSet<URI>();
|
||||
boolean fix_drive_letter_case = System.getProperty("os.name").toLowerCase().equals("windows");
|
||||
boolean fix_drive_letter_case =
|
||||
System.getProperty("os.name").toLowerCase().startsWith("windows");
|
||||
for (;;) {
|
||||
String l = in.readLine();
|
||||
if (l == null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue