changeset 1762:445b8b5ae9f4

8006879: Detection of windows in sjavac fails. Reviewed-by: jjg Contributed-by: erik.joelsson@oracle.com
author jjg
date Wed, 15 May 2013 10:39:26 -0700
parents 31ef33db5e0e
children 997c0fae2b12 0928f2cfbf8e
files src/share/classes/com/sun/tools/sjavac/server/CompilerThread.java
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- a/src/share/classes/com/sun/tools/sjavac/server/CompilerThread.java	Wed May 15 06:53:01 2013 -0700
+++ b/src/share/classes/com/sun/tools/sjavac/server/CompilerThread.java	Wed May 15 10:39:26 2013 -0700
@@ -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 @@
             }
             // 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)